Class: Bskyrb::AppBskyFeedGetlikes::GetLikes::Output
- Inherits:
-
Object
- Object
- Bskyrb::AppBskyFeedGetlikes::GetLikes::Output
- Defined in:
- lib/bskyrb/generated_classes.rb
Instance Attribute Summary collapse
-
#cid ⇒ Object
Returns the value of attribute cid.
-
#cursor ⇒ Object
Returns the value of attribute cursor.
-
#likes ⇒ Object
Returns the value of attribute likes.
-
#uri ⇒ Object
Returns the value of attribute uri.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#cid ⇒ Object
Returns the value of attribute cid.
2512 2513 2514 |
# File 'lib/bskyrb/generated_classes.rb', line 2512 def cid @cid end |
#cursor ⇒ Object
Returns the value of attribute cursor.
2514 2515 2516 |
# File 'lib/bskyrb/generated_classes.rb', line 2514 def cursor @cursor end |
#likes ⇒ Object
Returns the value of attribute likes.
2516 2517 2518 |
# File 'lib/bskyrb/generated_classes.rb', line 2516 def likes @likes end |
#uri ⇒ Object
Returns the value of attribute uri.
2510 2511 2512 |
# File 'lib/bskyrb/generated_classes.rb', line 2510 def uri @uri end |
Class Method Details
.from_hash(hash) ⇒ Object
2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 |
# File 'lib/bskyrb/generated_classes.rb', line 2518 def self.from_hash(hash) # httparty-returned string-keyed hash instance = new instance.send(:uri=, hash["uri"]) instance.send(:cid=, hash["cid"]) instance.send(:cursor=, hash["cursor"]) instance.send(:likes=, hash["likes"]) instance end |
Instance Method Details
#to_h ⇒ Object
2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 |
# File 'lib/bskyrb/generated_classes.rb', line 2533 def to_h { "uri" => uri, "cid" => cid, "cursor" => cursor, "likes" => likes } end |