Class: Bskyrb::AppBskyFeedDefs::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.



554
555
556
# File 'lib/bskyrb/generated_classes.rb', line 554

def parent
  @parent
end

#rootObject

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