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



5569
5570
5571
# File 'lib/bskyrb/generated_classes.rb', line 5569

def accessJwt
  @accessJwt
end

#didObject

Returns the value of attribute did.



5575
5576
5577
# File 'lib/bskyrb/generated_classes.rb', line 5575

def did
  @did
end

#handleObject

Returns the value of attribute handle.



5573
5574
5575
# File 'lib/bskyrb/generated_classes.rb', line 5573

def handle
  @handle
end

#refreshJwtObject

Returns the value of attribute refreshJwt.



5571
5572
5573
# File 'lib/bskyrb/generated_classes.rb', line 5571

def refreshJwt
  @refreshJwt
end

Class Method Details

.from_hash(hash) ⇒ Object



5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
# File 'lib/bskyrb/generated_classes.rb', line 5577

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
end

Instance Method Details

#to_hObject



5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
# File 'lib/bskyrb/generated_classes.rb', line 5592

def to_h
  {

    "accessJwt" => accessJwt,

    "refreshJwt" => refreshJwt,

    "handle" => handle,

    "did" => did

  }
end