Class: Bskyrb::AppBskyGraphGetblocks::GetBlocks::Input

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cursorObject

Returns the value of attribute cursor.



2799
2800
2801
# File 'lib/bskyrb/generated_classes.rb', line 2799

def cursor
  @cursor
end

#limitObject

Returns the value of attribute limit.



2797
2798
2799
# File 'lib/bskyrb/generated_classes.rb', line 2797

def limit
  @limit
end

Class Method Details

.from_hash(hash) ⇒ Object



2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
# File 'lib/bskyrb/generated_classes.rb', line 2801

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

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

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

  instance
end

Instance Method Details

#to_hObject



2812
2813
2814
2815
2816
2817
2818
2819
2820
# File 'lib/bskyrb/generated_classes.rb', line 2812

def to_h
  {

    "limit" => limit,

    "cursor" => cursor

  }
end