Class: ProtoBuffer::Converter::Param

Inherits:
Object
  • Object
show all
Defined in:
lib/protobuffer.rb

Overview

Structure helpers

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, label, index = nil) ⇒ Param

Returns a new instance of Param.



167
168
169
170
171
# File 'lib/protobuffer.rb', line 167

def initialize(type, label, index=nil)
	@type = type
	@label = label
	@index = index
end

Instance Attribute Details

#indexObject

Returns the value of attribute index.



165
166
167
# File 'lib/protobuffer.rb', line 165

def index
  @index
end

#labelObject

Returns the value of attribute label.



165
166
167
# File 'lib/protobuffer.rb', line 165

def label
  @label
end

#typeObject

Returns the value of attribute type.



165
166
167
# File 'lib/protobuffer.rb', line 165

def type
  @type
end