Class: Bskyrb::ComAtprotoSyncListrepos::ListRepos::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.



6035
6036
6037
# File 'lib/bskyrb/generated_classes.rb', line 6035

def cursor
  @cursor
end

#limitObject

Returns the value of attribute limit.



6033
6034
6035
# File 'lib/bskyrb/generated_classes.rb', line 6033

def limit
  @limit
end

Class Method Details

.from_hash(hash) ⇒ Object



6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
# File 'lib/bskyrb/generated_classes.rb', line 6037

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



6048
6049
6050
6051
6052
6053
6054
6055
6056
# File 'lib/bskyrb/generated_classes.rb', line 6048

def to_h
  {

    "limit" => limit,

    "cursor" => cursor

  }
end