Class: Bskyrb::ComAtprotoServerCreatesession::CreateSession::Input
- Inherits:
-
Object
- Object
- Bskyrb::ComAtprotoServerCreatesession::CreateSession::Input
- Defined in:
- lib/bskyrb/generated_classes.rb
Instance Attribute Summary collapse
-
#identifier ⇒ Object
Returns the value of attribute identifier.
-
#password ⇒ Object
Returns the value of attribute password.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#identifier ⇒ Object
Returns the value of attribute identifier.
5300 5301 5302 |
# File 'lib/bskyrb/generated_classes.rb', line 5300 def identifier @identifier end |
#password ⇒ Object
Returns the value of attribute password.
5302 5303 5304 |
# File 'lib/bskyrb/generated_classes.rb', line 5302 def password @password end |
Class Method Details
.from_hash(hash) ⇒ Object
5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 |
# File 'lib/bskyrb/generated_classes.rb', line 5304 def self.from_hash(hash) # httparty-returned string-keyed hash instance = new instance.send(:identifier=, hash["identifier"]) instance.send(:password=, hash["password"]) instance end |
Instance Method Details
#to_h ⇒ Object
5315 5316 5317 5318 5319 5320 5321 5322 5323 |
# File 'lib/bskyrb/generated_classes.rb', line 5315 def to_h { "identifier" => identifier, "password" => password } end |