Class: Bskyrb::ComAtprotoServerListapppasswords::AppPassword

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#createdAtObject

Returns the value of attribute createdAt.



1883
1884
1885
# File 'lib/bskyrb/generated_classes.rb', line 1883

def createdAt
  @createdAt
end

#nameObject

Returns the value of attribute name.



1881
1882
1883
# File 'lib/bskyrb/generated_classes.rb', line 1881

def name
  @name
end

Class Method Details

.from_hash(hash) ⇒ Object



1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
# File 'lib/bskyrb/generated_classes.rb', line 1885

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

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

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

  instance
end