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



1766
1767
1768
# File 'lib/bskyrb/generated_classes.rb', line 1766

def createdAt
  @createdAt
end

#nameObject

Returns the value of attribute name.



1762
1763
1764
# File 'lib/bskyrb/generated_classes.rb', line 1762

def name
  @name
end

#passwordObject

Returns the value of attribute password.



1764
1765
1766
# File 'lib/bskyrb/generated_classes.rb', line 1764

def password
  @password
end

Class Method Details

.from_hash(hash) ⇒ Object



1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
# File 'lib/bskyrb/generated_classes.rb', line 1768

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

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

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

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

  instance
end