Class: Bskyrb::AppBskyGraphDefs::ListItemView

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#subjectObject

Returns the value of attribute subject.



813
814
815
# File 'lib/bskyrb/generated_classes.rb', line 813

def subject
  @subject
end

Class Method Details

.from_hash(hash) ⇒ Object



815
816
817
818
819
820
821
822
# File 'lib/bskyrb/generated_classes.rb', line 815

def self.from_hash(hash)
  # httparty-returned string-keyed hash
  instance = new

  instance.send(:subject=, hash["subject"])

  instance
end