Class: SDM::AccountGrantCreateResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Overview

AccountGrantCreateResponse reports how the AccountGrants were created in the system.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account_grant: nil, meta: nil, rate_limit: nil) ⇒ AccountGrantCreateResponse

Returns a new instance of AccountGrantCreateResponse.



1356
1357
1358
1359
1360
1361
1362
1363
1364
# File 'lib/models/porcelain.rb', line 1356

def initialize(
  account_grant: nil,
  meta: nil,
  rate_limit: nil
)
  @account_grant =  == nil ? nil : 
  @meta = meta == nil ? nil : meta
  @rate_limit = rate_limit == nil ? nil : rate_limit
end

Instance Attribute Details

#account_grantObject

The created AccountGrant.



1350
1351
1352
# File 'lib/models/porcelain.rb', line 1350

def 
  @account_grant
end

#metaObject

Reserved for future use.



1352
1353
1354
# File 'lib/models/porcelain.rb', line 1352

def meta
  @meta
end

#rate_limitObject

Rate limit information.



1354
1355
1356
# File 'lib/models/porcelain.rb', line 1354

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



1366
1367
1368
1369
1370
1371
1372
# File 'lib/models/porcelain.rb', line 1366

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end