Class: Bskyrb::ComAtprotoServerGetaccountinvitecodes::GetAccountInviteCodes::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

#createAvailableObject

Returns the value of attribute createAvailable.



5457
5458
5459
# File 'lib/bskyrb/generated_classes.rb', line 5457

def createAvailable
  @createAvailable
end

#includeUsedObject

Returns the value of attribute includeUsed.



5455
5456
5457
# File 'lib/bskyrb/generated_classes.rb', line 5455

def includeUsed
  @includeUsed
end

Class Method Details

.from_hash(hash) ⇒ Object



5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
# File 'lib/bskyrb/generated_classes.rb', line 5459

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

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

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

  instance
end

Instance Method Details

#to_hObject



5470
5471
5472
5473
5474
5475
5476
5477
5478
# File 'lib/bskyrb/generated_classes.rb', line 5470

def to_h
  {

    "includeUsed" => includeUsed,

    "createAvailable" => createAvailable

  }
end