Class: Bskyrb::AppBskyGraphGetblocks::GetBlocks::Output
- Inherits:
-
Object
- Object
- Bskyrb::AppBskyGraphGetblocks::GetBlocks::Output
- Defined in:
- lib/bskyrb/generated_classes.rb
Instance Attribute Summary collapse
-
#blocks ⇒ Object
Returns the value of attribute blocks.
-
#cursor ⇒ Object
Returns the value of attribute cursor.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#blocks ⇒ Object
Returns the value of attribute blocks.
2826 2827 2828 |
# File 'lib/bskyrb/generated_classes.rb', line 2826 def blocks @blocks end |
#cursor ⇒ Object
Returns the value of attribute cursor.
2824 2825 2826 |
# File 'lib/bskyrb/generated_classes.rb', line 2824 def cursor @cursor end |
Class Method Details
.from_hash(hash) ⇒ Object
2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 |
# File 'lib/bskyrb/generated_classes.rb', line 2828 def self.from_hash(hash) # httparty-returned string-keyed hash instance = new instance.send(:cursor=, hash["cursor"]) instance.send(:blocks=, hash["blocks"]) instance end |
Instance Method Details
#to_h ⇒ Object
2839 2840 2841 2842 2843 2844 2845 2846 2847 |
# File 'lib/bskyrb/generated_classes.rb', line 2839 def to_h { "cursor" => cursor, "blocks" => blocks } end |