Class: KRPC::Types::DictionaryType
- Defined in:
- lib/krpc/types.rb
Instance Attribute Summary collapse
-
#key_type ⇒ Object
readonly
Returns the value of attribute key_type.
-
#value_type ⇒ Object
readonly
Returns the value of attribute value_type.
Attributes inherited from TypeBase
Instance Method Summary collapse
-
#initialize(pb_type) ⇒ DictionaryType
constructor
A new instance of DictionaryType.
Constructor Details
#initialize(pb_type) ⇒ DictionaryType
Returns a new instance of DictionaryType.
139 140 141 142 |
# File 'lib/krpc/types.rb', line 139 def initialize(pb_type) @key_type, @value_type = pb_type.types.map {|t| TypeStore[t] } super(pb_type, Hash) end |
Instance Attribute Details
#key_type ⇒ Object (readonly)
Returns the value of attribute key_type.
138 139 140 |
# File 'lib/krpc/types.rb', line 138 def key_type @key_type end |
#value_type ⇒ Object (readonly)
Returns the value of attribute value_type.
138 139 140 |
# File 'lib/krpc/types.rb', line 138 def value_type @value_type end |