Class: Bskyrb::AppBskyFeedDefs::ReplyRef
- Inherits:
-
Object
- Object
- Bskyrb::AppBskyFeedDefs::ReplyRef
- Defined in:
- lib/bskyrb/generated_classes.rb
Instance Attribute Summary collapse
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#root ⇒ Object
Returns the value of attribute root.
Class Method Summary collapse
Instance Attribute Details
#parent ⇒ Object
Returns the value of attribute parent.
554 555 556 |
# File 'lib/bskyrb/generated_classes.rb', line 554 def parent @parent end |
#root ⇒ Object
Returns the value of attribute root.
552 553 554 |
# File 'lib/bskyrb/generated_classes.rb', line 552 def root @root end |
Class Method Details
.from_hash(hash) ⇒ Object
556 557 558 559 560 561 562 563 564 565 |
# File 'lib/bskyrb/generated_classes.rb', line 556 def self.from_hash(hash) # httparty-returned string-keyed hash instance = new instance.send(:root=, hash["root"]) instance.send(:parent=, hash["parent"]) instance end |