Class: Bskyrb::ComAtprotoLabelQuerylabels::QueryLabels::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.



4389
4390
4391
# File 'lib/bskyrb/generated_classes.rb', line 4389

def cursor
  @cursor
end

#labelsObject

Returns the value of attribute labels.



4391
4392
4393
# File 'lib/bskyrb/generated_classes.rb', line 4391

def labels
  @labels
end

Class Method Details

.from_hash(hash) ⇒ Object



4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
# File 'lib/bskyrb/generated_classes.rb', line 4393

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

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

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

  instance
end

Instance Method Details

#to_hObject



4404
4405
4406
4407
4408
4409
4410
4411
4412
# File 'lib/bskyrb/generated_classes.rb', line 4404

def to_h
  {

    "cursor" => cursor,

    "labels" => labels

  }
end