Class: Bskyrb::ComAtprotoAdminSearchrepos::SearchRepos::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.



4114
4115
4116
# File 'lib/bskyrb/generated_classes.rb', line 4114

def cursor
  @cursor
end

#reposObject

Returns the value of attribute repos.



4116
4117
4118
# File 'lib/bskyrb/generated_classes.rb', line 4116

def repos
  @repos
end

Class Method Details

.from_hash(hash) ⇒ Object



4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
# File 'lib/bskyrb/generated_classes.rb', line 4118

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



4129
4130
4131
4132
4133
4134
4135
4136
4137
# File 'lib/bskyrb/generated_classes.rb', line 4129

def to_h
  {

    "cursor" => cursor,

    "repos" => repos

  }
end