Class: Bskyrb::AppBskyFeedGetrepostedby::GetRepostedBy::Output
- Inherits:
-
Object
- Object
- Bskyrb::AppBskyFeedGetrepostedby::GetRepostedBy::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.
-
#repostedBy ⇒ Object
Returns the value of attribute repostedBy.
-
#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.
2692 2693 2694 |
# File 'lib/bskyrb/generated_classes.rb', line 2692 def cid @cid end |
#cursor ⇒ Object
Returns the value of attribute cursor.
2694 2695 2696 |
# File 'lib/bskyrb/generated_classes.rb', line 2694 def cursor @cursor end |
#repostedBy ⇒ Object
Returns the value of attribute repostedBy.
2696 2697 2698 |
# File 'lib/bskyrb/generated_classes.rb', line 2696 def repostedBy @repostedBy end |
#uri ⇒ Object
Returns the value of attribute uri.
2690 2691 2692 |
# File 'lib/bskyrb/generated_classes.rb', line 2690 def uri @uri end |
Class Method Details
.from_hash(hash) ⇒ Object
2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 |
# File 'lib/bskyrb/generated_classes.rb', line 2698 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(:repostedBy=, hash["repostedBy"]) instance end |
Instance Method Details
#to_h ⇒ Object
2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 |
# File 'lib/bskyrb/generated_classes.rb', line 2713 def to_h { "uri" => uri, "cid" => cid, "cursor" => cursor, "repostedBy" => repostedBy } end |