Class: Bskyrb::ComAtprotoServerDeleteaccount::DeleteAccount::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

#didObject

Returns the value of attribute did.



5376
5377
5378
# File 'lib/bskyrb/generated_classes.rb', line 5376

def did
  @did
end

#passwordObject

Returns the value of attribute password.



5378
5379
5380
# File 'lib/bskyrb/generated_classes.rb', line 5378

def password
  @password
end

#tokenObject

Returns the value of attribute token.



5380
5381
5382
# File 'lib/bskyrb/generated_classes.rb', line 5380

def token
  @token
end

Class Method Details

.from_hash(hash) ⇒ Object



5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
# File 'lib/bskyrb/generated_classes.rb', line 5382

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

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

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

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

  instance
end

Instance Method Details

#to_hObject



5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
# File 'lib/bskyrb/generated_classes.rb', line 5395

def to_h
  {

    "did" => did,

    "password" => password,

    "token" => token

  }
end