Class: MessagePack::IDL::IR::EnumField

Inherits:
Object
  • Object
show all
Defined in:
lib/msgpack/idl/ir.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



326
327
328
# File 'lib/msgpack/idl/ir.rb', line 326

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



326
327
328
# File 'lib/msgpack/idl/ir.rb', line 326

def name
  @name
end