Class: Bskyrb::ComAtprotoLabelSubscribelabels::Info

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#messageObject

Returns the value of attribute message.



1594
1595
1596
# File 'lib/bskyrb/generated_classes.rb', line 1594

def message
  @message
end

#nameObject

Returns the value of attribute name.



1592
1593
1594
# File 'lib/bskyrb/generated_classes.rb', line 1592

def name
  @name
end

Class Method Details

.from_hash(hash) ⇒ Object



1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
# File 'lib/bskyrb/generated_classes.rb', line 1596

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

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

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

  instance
end