Class: Bskyrb::AppBskyFeedDefs::ReasonRepost

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#byObject

Returns the value of attribute by.



571
572
573
# File 'lib/bskyrb/generated_classes.rb', line 571

def by
  @by
end

#indexedAtObject

Returns the value of attribute indexedAt.



573
574
575
# File 'lib/bskyrb/generated_classes.rb', line 573

def indexedAt
  @indexedAt
end

Class Method Details

.from_hash(hash) ⇒ Object



575
576
577
578
579
580
581
582
583
584
# File 'lib/bskyrb/generated_classes.rb', line 575

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

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

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

  instance
end