Class: Bskyrb::AppBskyFeedDefs::ThreadViewPost
- Inherits:
-
Object
- Object
- Bskyrb::AppBskyFeedDefs::ThreadViewPost
- Defined in:
- lib/bskyrb/generated_classes.rb
Instance Attribute Summary collapse
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#post ⇒ Object
Returns the value of attribute post.
-
#replies ⇒ Object
Returns the value of attribute replies.
Class Method Summary collapse
Instance Attribute Details
#parent ⇒ Object
Returns the value of attribute parent.
592 593 594 |
# File 'lib/bskyrb/generated_classes.rb', line 592 def parent @parent end |
#post ⇒ Object
Returns the value of attribute post.
590 591 592 |
# File 'lib/bskyrb/generated_classes.rb', line 590 def post @post end |
#replies ⇒ Object
Returns the value of attribute replies.
594 595 596 |
# File 'lib/bskyrb/generated_classes.rb', line 594 def replies @replies end |
Class Method Details
.from_hash(hash) ⇒ Object
596 597 598 599 600 601 602 603 604 605 606 607 |
# File 'lib/bskyrb/generated_classes.rb', line 596 def self.from_hash(hash) # httparty-returned string-keyed hash instance = new instance.send(:post=, hash["post"]) instance.send(:parent=, hash["parent"]) instance.send(:replies=, hash["replies"]) instance end |