class ServiceOperation::Params::EnumType

@abstract for Enumerator based types

Public Class Methods

new(*_args) click to toggle source

@abstract

# File lib/service_operation/params/types.rb, line 32
def initialize(*_args)
  freeze
end

Public Instance Methods

==(other) click to toggle source
# File lib/service_operation/params/types.rb, line 27
def ==(other)
  other.is_a?(self.class) && other.inspect == inspect
end
inspect() click to toggle source
# File lib/service_operation/params/types.rb, line 36
def inspect
  "<#{name}>"
end
name() click to toggle source
# File lib/service_operation/params/types.rb, line 40
def name
  type.name
end
type() click to toggle source

@abstract

# File lib/service_operation/params/types.rb, line 45
def type
  raise('define in sub class')
end