Class: Bskyrb::ComAtprotoServerCreateinvitecodes::CreateInviteCodes::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

#codeCountObject

Returns the value of attribute codeCount.



5242
5243
5244
# File 'lib/bskyrb/generated_classes.rb', line 5242

def codeCount
  @codeCount
end

#forAccountsObject

Returns the value of attribute forAccounts.



5246
5247
5248
# File 'lib/bskyrb/generated_classes.rb', line 5246

def forAccounts
  @forAccounts
end

#useCountObject

Returns the value of attribute useCount.



5244
5245
5246
# File 'lib/bskyrb/generated_classes.rb', line 5244

def useCount
  @useCount
end

Class Method Details

.from_hash(hash) ⇒ Object



5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
# File 'lib/bskyrb/generated_classes.rb', line 5248

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

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

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

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

  instance
end

Instance Method Details

#to_hObject



5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
# File 'lib/bskyrb/generated_classes.rb', line 5261

def to_h
  {

    "codeCount" => codeCount,

    "useCount" => useCount,

    "forAccounts" => forAccounts

  }
end