Class: Bskyrb::ComAtprotoServerCreateinvitecodes::CreateInviteCodes::Input
- Inherits:
-
Object
- Object
- Bskyrb::ComAtprotoServerCreateinvitecodes::CreateInviteCodes::Input
- Defined in:
- lib/bskyrb/generated_classes.rb
Instance Attribute Summary collapse
-
#codeCount ⇒ Object
Returns the value of attribute codeCount.
-
#forAccounts ⇒ Object
Returns the value of attribute forAccounts.
-
#useCount ⇒ Object
Returns the value of attribute useCount.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#codeCount ⇒ Object
Returns the value of attribute codeCount.
5242 5243 5244 |
# File 'lib/bskyrb/generated_classes.rb', line 5242 def codeCount @codeCount end |
#forAccounts ⇒ Object
Returns the value of attribute forAccounts.
5246 5247 5248 |
# File 'lib/bskyrb/generated_classes.rb', line 5246 def forAccounts @forAccounts end |
#useCount ⇒ Object
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_h ⇒ Object
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 |