Class: Bskyrb::ComAtprotoServerGetsession::GetSession::Output
- Inherits:
-
Object
- Object
- Bskyrb::ComAtprotoServerGetsession::GetSession::Output
- Defined in:
- lib/bskyrb/generated_classes.rb
Instance Attribute Summary collapse
-
#did ⇒ Object
Returns the value of attribute did.
-
#email ⇒ Object
Returns the value of attribute email.
-
#handle ⇒ Object
Returns the value of attribute handle.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#did ⇒ Object
Returns the value of attribute did.
5509 5510 5511 |
# File 'lib/bskyrb/generated_classes.rb', line 5509 def did @did end |
#email ⇒ Object
Returns the value of attribute email.
5511 5512 5513 |
# File 'lib/bskyrb/generated_classes.rb', line 5511 def email @email end |
#handle ⇒ Object
Returns the value of attribute handle.
5507 5508 5509 |
# File 'lib/bskyrb/generated_classes.rb', line 5507 def handle @handle end |
Class Method Details
.from_hash(hash) ⇒ Object
5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 |
# File 'lib/bskyrb/generated_classes.rb', line 5513 def self.from_hash(hash) # httparty-returned string-keyed hash instance = new instance.send(:handle=, hash["handle"]) instance.send(:did=, hash["did"]) instance.send(:email=, hash["email"]) instance end |
Instance Method Details
#to_h ⇒ Object
5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 |
# File 'lib/bskyrb/generated_classes.rb', line 5526 def to_h { "handle" => handle, "did" => did, "email" => email } end |