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.



1213
1214
1215
1216
1217
1218
1219
1220
1221
# File 'lib/models/porcelain.rb', line 1213

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.



1207
1208
1209
# File 'lib/models/porcelain.rb', line 1207

def 
  @account_grant
end

#metaObject

Reserved for future use.



1209
1210
1211
# File 'lib/models/porcelain.rb', line 1209

def meta
  @meta
end

#rate_limitObject

Rate limit information.



1211
1212
1213
# File 'lib/models/porcelain.rb', line 1211

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



1223
1224
1225
1226
1227
1228
1229
# File 'lib/models/porcelain.rb', line 1223

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