Class: Bskyrb::ComAtprotoAdminUpdateaccounthandle::UpdateAccountHandle::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.



4248
4249
4250
# File 'lib/bskyrb/generated_classes.rb', line 4248

def did
  @did
end

#handleObject

Returns the value of attribute handle.



4250
4251
4252
# File 'lib/bskyrb/generated_classes.rb', line 4250

def handle
  @handle
end

Class Method Details

.from_hash(hash) ⇒ Object



4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
# File 'lib/bskyrb/generated_classes.rb', line 4252

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

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

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

  instance
end

Instance Method Details

#to_hObject



4263
4264
4265
4266
4267
4268
4269
4270
4271
# File 'lib/bskyrb/generated_classes.rb', line 4263

def to_h
  {

    "did" => did,

    "handle" => handle

  }
end