Class: Bskyrb::ComAtprotoSyncNotifyofupdate::NotifyOfUpdate::Input

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

#hostnameObject

Returns the value of attribute hostname.



6091
6092
6093
# File 'lib/bskyrb/generated_classes.rb', line 6091

def hostname
  @hostname
end

Class Method Details

.from_hash(hash) ⇒ Object



6093
6094
6095
6096
6097
6098
6099
6100
# File 'lib/bskyrb/generated_classes.rb', line 6093

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

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

  instance
end

Instance Method Details

#to_hObject



6102
6103
6104
6105
6106
6107
6108
# File 'lib/bskyrb/generated_classes.rb', line 6102

def to_h
  {

    "hostname" => hostname

  }
end