Class: Bskyrb::AppBskyFeedGetlikes::GetLikes::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

#cidObject

Returns the value of attribute cid.



2473
2474
2475
# File 'lib/bskyrb/generated_classes.rb', line 2473

def cid
  @cid
end

#cursorObject

Returns the value of attribute cursor.



2477
2478
2479
# File 'lib/bskyrb/generated_classes.rb', line 2477

def cursor
  @cursor
end

#limitObject

Returns the value of attribute limit.



2475
2476
2477
# File 'lib/bskyrb/generated_classes.rb', line 2475

def limit
  @limit
end

#uriObject

Returns the value of attribute uri.



2471
2472
2473
# File 'lib/bskyrb/generated_classes.rb', line 2471

def uri
  @uri
end

Class Method Details

.from_hash(hash) ⇒ Object



2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
# File 'lib/bskyrb/generated_classes.rb', line 2479

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

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

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

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

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

  instance
end

Instance Method Details

#to_hObject



2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
# File 'lib/bskyrb/generated_classes.rb', line 2494

def to_h
  {

    "uri" => uri,

    "cid" => cid,

    "limit" => limit,

    "cursor" => cursor

  }
end