Class: Bskyrb::AppBskyActorGetsuggestions::GetSuggestions::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.



2210
2211
2212
# File 'lib/bskyrb/generated_classes.rb', line 2210

def cursor
  @cursor
end

#limitObject

Returns the value of attribute limit.



2208
2209
2210
# File 'lib/bskyrb/generated_classes.rb', line 2208

def limit
  @limit
end

Class Method Details

.from_hash(hash) ⇒ Object



2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
# File 'lib/bskyrb/generated_classes.rb', line 2212

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



2223
2224
2225
2226
2227
2228
2229
2230
2231
# File 'lib/bskyrb/generated_classes.rb', line 2223

def to_h
  {

    "limit" => limit,

    "cursor" => cursor

  }
end