Class: KRPC::Types::TypeBase
- Inherits:
-
Object
- Object
- KRPC::Types::TypeBase
- Defined in:
- lib/krpc/types.rb
Direct Known Subclasses
ClassType, DictionaryType, EnumType, ListType, MessageType, SetType, TupleType, ValueType
Instance Attribute Summary collapse
-
#protobuf_type ⇒ Object
readonly
Returns the value of attribute protobuf_type.
-
#ruby_type ⇒ Object
readonly
Returns the value of attribute ruby_type.
Instance Method Summary collapse
-
#initialize(protobuf_type, ruby_type) ⇒ TypeBase
constructor
A new instance of TypeBase.
Constructor Details
#initialize(protobuf_type, ruby_type) ⇒ TypeBase
Returns a new instance of TypeBase.
118 119 120 121 |
# File 'lib/krpc/types.rb', line 118 def initialize(protobuf_type, ruby_type) @protobuf_type = protobuf_type @ruby_type = ruby_type end |
Instance Attribute Details
#protobuf_type ⇒ Object (readonly)
Returns the value of attribute protobuf_type.
117 118 119 |
# File 'lib/krpc/types.rb', line 117 def protobuf_type @protobuf_type end |
#ruby_type ⇒ Object (readonly)
Returns the value of attribute ruby_type.
117 118 119 |
# File 'lib/krpc/types.rb', line 117 def ruby_type @ruby_type end |