Class: GoonModelGen::Golang::Enum::Element
- Inherits:
-
Object
- Object
- GoonModelGen::Golang::Enum::Element
- Defined in:
- lib/goon_model_gen/golang/enum.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, name) ⇒ Element
constructor
A new instance of Element.
Constructor Details
#initialize(value, name) ⇒ Element
Returns a new instance of Element.
10 11 12 |
# File 'lib/goon_model_gen/golang/enum.rb', line 10 def initialize(value, name) @value, @name = value, name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/goon_model_gen/golang/enum.rb', line 9 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
9 10 11 |
# File 'lib/goon_model_gen/golang/enum.rb', line 9 def value @value end |