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



2049
2050
2051
# File 'lib/bskyrb/generated_classes.rb', line 2049

def message
  @message
end

#nameObject

Returns the value of attribute name.



2047
2048
2049
# File 'lib/bskyrb/generated_classes.rb', line 2047

def name
  @name
end

Class Method Details

.from_hash(hash) ⇒ Object



2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
# File 'lib/bskyrb/generated_classes.rb', line 2051

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

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

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

  instance
end