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.
80 81 82 83 |
# File 'lib/krpc/types.rb', line 80 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.
79 80 81 |
# File 'lib/krpc/types.rb', line 79 def protobuf_type @protobuf_type end |
#ruby_type ⇒ Object (readonly)
Returns the value of attribute ruby_type.
79 80 81 |
# File 'lib/krpc/types.rb', line 79 def ruby_type @ruby_type end |