Class: Bskyrb::AppBskyFeedPost::ReplyRef
- Inherits:
-
Object
- Object
- Bskyrb::AppBskyFeedPost::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.
676 677 678 |
# File 'lib/bskyrb/generated_classes.rb', line 676 def parent @parent end |
#root ⇒ Object
Returns the value of attribute root.
674 675 676 |
# File 'lib/bskyrb/generated_classes.rb', line 674 def root @root end |
Class Method Details
.from_hash(hash) ⇒ Object
678 679 680 681 682 683 684 685 686 687 |
# File 'lib/bskyrb/generated_classes.rb', line 678 def self.from_hash(hash) # httparty-returned string-keyed hash instance = new instance.send(:root=, hash["root"]) instance.send(:parent=, hash["parent"]) instance end |