Class: EnumBehavior::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/enum_behavior/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(model) ⇒ Base

Returns a new instance of Base.



3
4
5
# File 'lib/enum_behavior/base.rb', line 3

def initialize(model)
  @model = model
end

Instance Attribute Details

#modelObject (readonly)

Returns the value of attribute model.



7
8
9
# File 'lib/enum_behavior/base.rb', line 7

def model
  @model
end