Class: Bskyrb::AppBskyFeedGetlikes::Like

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#actorObject

Returns the value of attribute actor.



655
656
657
# File 'lib/bskyrb/generated_classes.rb', line 655

def actor
  @actor
end

#createdAtObject

Returns the value of attribute createdAt.



653
654
655
# File 'lib/bskyrb/generated_classes.rb', line 653

def createdAt
  @createdAt
end

#indexedAtObject

Returns the value of attribute indexedAt.



651
652
653
# File 'lib/bskyrb/generated_classes.rb', line 651

def indexedAt
  @indexedAt
end

Class Method Details

.from_hash(hash) ⇒ Object



657
658
659
660
661
662
663
664
665
666
667
668
# File 'lib/bskyrb/generated_classes.rb', line 657

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

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

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

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

  instance
end