Class: Bskyrb::ComAtprotoServerCreatesession::CreateSession::Output

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

#accessJwtObject

Returns the value of attribute accessJwt.



5327
5328
5329
# File 'lib/bskyrb/generated_classes.rb', line 5327

def accessJwt
  @accessJwt
end

#didObject

Returns the value of attribute did.



5333
5334
5335
# File 'lib/bskyrb/generated_classes.rb', line 5333

def did
  @did
end

#emailObject

Returns the value of attribute email.



5335
5336
5337
# File 'lib/bskyrb/generated_classes.rb', line 5335

def email
  @email
end

#handleObject

Returns the value of attribute handle.



5331
5332
5333
# File 'lib/bskyrb/generated_classes.rb', line 5331

def handle
  @handle
end

#refreshJwtObject

Returns the value of attribute refreshJwt.



5329
5330
5331
# File 'lib/bskyrb/generated_classes.rb', line 5329

def refreshJwt
  @refreshJwt
end

Class Method Details

.from_hash(hash) ⇒ Object



5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
# File 'lib/bskyrb/generated_classes.rb', line 5337

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

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

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

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

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

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

  instance
end

Instance Method Details

#to_hObject



5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
# File 'lib/bskyrb/generated_classes.rb', line 5354

def to_h
  {

    "accessJwt" => accessJwt,

    "refreshJwt" => refreshJwt,

    "handle" => handle,

    "did" => did,

    "email" => email

  }
end