Class: Bskyrb::ComAtprotoServerCreateinvitecode::CreateInviteCode::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

#codeObject

Returns the value of attribute code.



5217
5218
5219
# File 'lib/bskyrb/generated_classes.rb', line 5217

def code
  @code
end

Class Method Details

.from_hash(hash) ⇒ Object



5219
5220
5221
5222
5223
5224
5225
5226
# File 'lib/bskyrb/generated_classes.rb', line 5219

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

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

  instance
end

Instance Method Details

#to_hObject



5228
5229
5230
5231
5232
5233
5234
# File 'lib/bskyrb/generated_classes.rb', line 5228

def to_h
  {

    "code" => code

  }
end