Class: KakaxiParse::Datatype::Pointer
- Defined in:
- lib/kakaxi_parse/datatypes/pointer.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(klass, id) ⇒ Pointer
constructor
A new instance of Pointer.
- #to_hash ⇒ Object
Constructor Details
#initialize(klass, id) ⇒ Pointer
Returns a new instance of Pointer.
6 7 8 9 |
# File 'lib/kakaxi_parse/datatypes/pointer.rb', line 6 def initialize(klass, id) @id = id @klass = klass end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/kakaxi_parse/datatypes/pointer.rb', line 4 def id @id end |
Instance Method Details
#to_hash ⇒ Object
11 12 13 |
# File 'lib/kakaxi_parse/datatypes/pointer.rb', line 11 def to_hash { __type: 'Pointer', className: @klass.demodulize, objectId: @id } end |