Class: ProtoBuffer::Converter::Param
- Inherits:
-
Object
- Object
- ProtoBuffer::Converter::Param
- Defined in:
- lib/protobuffer.rb
Overview
Structure helpers
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
-
#label ⇒ Object
Returns the value of attribute label.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, label, index = nil) ⇒ Param
constructor
A new instance of Param.
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
#index ⇒ Object
Returns the value of attribute index.
165 166 167 |
# File 'lib/protobuffer.rb', line 165 def index @index end |
#label ⇒ Object
Returns the value of attribute label.
165 166 167 |
# File 'lib/protobuffer.rb', line 165 def label @label end |
#type ⇒ Object
Returns the value of attribute type.
165 166 167 |
# File 'lib/protobuffer.rb', line 165 def type @type end |