Class: Bskyrb::AppBskyFeedDefs::ThreadViewPost

Inherits:
Object
  • Object
show all
Defined in:
lib/bskyrb/generated_classes.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#parentObject

Returns the value of attribute parent.



592
593
594
# File 'lib/bskyrb/generated_classes.rb', line 592

def parent
  @parent
end

#postObject

Returns the value of attribute post.



590
591
592
# File 'lib/bskyrb/generated_classes.rb', line 590

def post
  @post
end

#repliesObject

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