Class: Bskyrb::ComAtprotoLabelSubscribelabels::Labels

Inherits:
Object
  • Object
show all
Defined in:
lib/bskyrb/generated_classes.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#labelsObject

Returns the value of attribute labels.



1575
1576
1577
# File 'lib/bskyrb/generated_classes.rb', line 1575

def labels
  @labels
end

#seqObject

Returns the value of attribute seq.



1573
1574
1575
# File 'lib/bskyrb/generated_classes.rb', line 1573

def seq
  @seq
end

Class Method Details

.from_hash(hash) ⇒ Object



1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
# File 'lib/bskyrb/generated_classes.rb', line 1577

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

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

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

  instance
end