Class: Bskyrb::AppBskyFeedPost::ReplyRef

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.



676
677
678
# File 'lib/bskyrb/generated_classes.rb', line 676

def parent
  @parent
end

#rootObject

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