Class: Bskyrb::AppBskyFeedGetrepostedby::GetRepostedBy::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.



2653
2654
2655
# File 'lib/bskyrb/generated_classes.rb', line 2653

def cid
  @cid
end

#cursorObject

Returns the value of attribute cursor.



2657
2658
2659
# File 'lib/bskyrb/generated_classes.rb', line 2657

def cursor
  @cursor
end

#limitObject

Returns the value of attribute limit.



2655
2656
2657
# File 'lib/bskyrb/generated_classes.rb', line 2655

def limit
  @limit
end

#uriObject

Returns the value of attribute uri.



2651
2652
2653
# File 'lib/bskyrb/generated_classes.rb', line 2651

def uri
  @uri
end

Class Method Details

.from_hash(hash) ⇒ Object



2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
# File 'lib/bskyrb/generated_classes.rb', line 2659

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



2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
# File 'lib/bskyrb/generated_classes.rb', line 2674

def to_h
  {

    "uri" => uri,

    "cid" => cid,

    "limit" => limit,

    "cursor" => cursor

  }
end