Class: KRPC::Types::ClassType
Instance Attribute Summary collapse
-
#class_name ⇒ Object
readonly
Returns the value of attribute class_name.
-
#service_name ⇒ Object
readonly
Returns the value of attribute service_name.
Attributes inherited from TypeBase
Instance Method Summary collapse
-
#initialize(pb_type) ⇒ ClassType
constructor
A new instance of ClassType.
Constructor Details
#initialize(pb_type) ⇒ ClassType
Returns a new instance of ClassType.
94 95 96 97 |
# File 'lib/krpc/types.rb', line 94 def initialize(pb_type) @service_name, @class_name = pb_type.service, pb_type.name super(pb_type, Gen.generate_class(service_name, class_name)) end |
Instance Attribute Details
#class_name ⇒ Object (readonly)
Returns the value of attribute class_name.
93 94 95 |
# File 'lib/krpc/types.rb', line 93 def class_name @class_name end |
#service_name ⇒ Object (readonly)
Returns the value of attribute service_name.
93 94 95 |
# File 'lib/krpc/types.rb', line 93 def service_name @service_name end |