Class: SDM::AccountGrantGetResponse
- Inherits:
-
Object
- Object
- SDM::AccountGrantGetResponse
- Defined in:
- lib/models/porcelain.rb
Overview
AccountGrantGetResponse returns a requested AccountGrant.
Instance Attribute Summary collapse
-
#account_grant ⇒ Object
The requested AccountGrant.
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(meta: nil, account_grant: nil, rate_limit: nil) ⇒ AccountGrantGetResponse
constructor
A new instance of AccountGrantGetResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, account_grant: nil, rate_limit: nil) ⇒ AccountGrantGetResponse
Returns a new instance of AccountGrantGetResponse.
317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 |
# File 'lib/models/porcelain.rb', line 317 def initialize( meta: nil, account_grant: nil, rate_limit: nil ) if != nil @meta = end if account_grant != nil @account_grant = account_grant end if rate_limit != nil @rate_limit = rate_limit end end |
Instance Attribute Details
#account_grant ⇒ Object
The requested AccountGrant.
313 314 315 |
# File 'lib/models/porcelain.rb', line 313 def account_grant @account_grant end |
#meta ⇒ Object
Reserved for future use.
311 312 313 |
# File 'lib/models/porcelain.rb', line 311 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
315 316 317 |
# File 'lib/models/porcelain.rb', line 315 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
333 334 335 336 337 338 339 |
# File 'lib/models/porcelain.rb', line 333 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |