Class: MessagePack::IDL::IR::EnumField
- Inherits:
-
Object
- Object
- MessagePack::IDL::IR::EnumField
- Defined in:
- lib/msgpack/idl/ir.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(id, name) ⇒ EnumField
constructor
A new instance of EnumField.
Constructor Details
#initialize(id, name) ⇒ EnumField
Returns a new instance of EnumField.
322 323 324 325 |
# File 'lib/msgpack/idl/ir.rb', line 322 def initialize(id, name) @id = id @name = name end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
326 327 328 |
# File 'lib/msgpack/idl/ir.rb', line 326 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
326 327 328 |
# File 'lib/msgpack/idl/ir.rb', line 326 def name @name end |