Class: Bskyrb::ComAtprotoServerResetpassword::ResetPassword::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

#passwordObject

Returns the value of attribute password.



5644
5645
5646
# File 'lib/bskyrb/generated_classes.rb', line 5644

def password
  @password
end

#tokenObject

Returns the value of attribute token.



5642
5643
5644
# File 'lib/bskyrb/generated_classes.rb', line 5642

def token
  @token
end

Class Method Details

.from_hash(hash) ⇒ Object



5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
# File 'lib/bskyrb/generated_classes.rb', line 5646

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

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

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

  instance
end

Instance Method Details

#to_hObject



5657
5658
5659
5660
5661
5662
5663
5664
5665
# File 'lib/bskyrb/generated_classes.rb', line 5657

def to_h
  {

    "token" => token,

    "password" => password

  }
end