Class: GoonModelGen::Golang::Enum::Element

Inherits:
Object
  • Object
show all
Defined in:
lib/goon_model_gen/golang/enum.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



9
10
11
# File 'lib/goon_model_gen/golang/enum.rb', line 9

def name
  @name
end

#valueObject (readonly)

Returns the value of attribute value.



9
10
11
# File 'lib/goon_model_gen/golang/enum.rb', line 9

def value
  @value
end