Class: Pb::TypeInfo
- Inherits:
-
Object
- Object
- Pb::TypeInfo
- Defined in:
- lib/pb.rb
Instance Attribute Summary collapse
-
#subtype ⇒ Object
readonly
Returns the value of attribute subtype.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, subtype:) ⇒ TypeInfo
constructor
A new instance of TypeInfo.
Constructor Details
#initialize(type:, subtype:) ⇒ TypeInfo
Returns a new instance of TypeInfo.
187 188 189 190 |
# File 'lib/pb.rb', line 187 def initialize(type:, subtype:) @type = type @subtype = subtype end |
Instance Attribute Details
#subtype ⇒ Object (readonly)
Returns the value of attribute subtype.
191 192 193 |
# File 'lib/pb.rb', line 191 def subtype @subtype end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
191 192 193 |
# File 'lib/pb.rb', line 191 def type @type end |