Class: OdataDuty::EnumMember
- Inherits:
-
Object
- Object
- OdataDuty::EnumMember
- Defined in:
- lib/odata_duty/enum_type.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ EnumMember
constructor
A new instance of EnumMember.
Constructor Details
#initialize(name) ⇒ EnumMember
Returns a new instance of EnumMember.
5 6 7 |
# File 'lib/odata_duty/enum_type.rb', line 5 def initialize(name) @name = name.to_str end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/odata_duty/enum_type.rb', line 3 def name @name end |