Class: Bskyrb::ComAtprotoSyncListrepos::ListRepos::Output

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.



6060
6061
6062
# File 'lib/bskyrb/generated_classes.rb', line 6060

def cursor
  @cursor
end

#reposObject

Returns the value of attribute repos.



6062
6063
6064
# File 'lib/bskyrb/generated_classes.rb', line 6062

def repos
  @repos
end

Class Method Details

.from_hash(hash) ⇒ Object



6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
# File 'lib/bskyrb/generated_classes.rb', line 6064

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

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

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

  instance
end

Instance Method Details

#to_hObject



6075
6076
6077
6078
6079
6080
6081
6082
6083
# File 'lib/bskyrb/generated_classes.rb', line 6075

def to_h
  {

    "cursor" => cursor,

    "repos" => repos

  }
end