Class: SDM::AccountGrantCreateResponse
- Inherits:
-
Object
- Object
- SDM::AccountGrantCreateResponse
- Defined in:
- lib/models/porcelain.rb
Overview
AccountGrantCreateResponse reports how the AccountGrants were created in the system.
Instance Attribute Summary collapse
-
#account_grant ⇒ Object
The created AccountGrant.
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(account_grant: nil, meta: nil, rate_limit: nil) ⇒ AccountGrantCreateResponse
constructor
A new instance of AccountGrantCreateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(account_grant: nil, meta: nil, rate_limit: nil) ⇒ AccountGrantCreateResponse
Returns a new instance of AccountGrantCreateResponse.
1093 1094 1095 1096 1097 1098 1099 1100 1101 |
# File 'lib/models/porcelain.rb', line 1093 def initialize( account_grant: nil, meta: nil, rate_limit: nil ) @account_grant = account_grant == nil ? nil : account_grant @meta = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#account_grant ⇒ Object
The created AccountGrant.
1087 1088 1089 |
# File 'lib/models/porcelain.rb', line 1087 def account_grant @account_grant end |
#meta ⇒ Object
Reserved for future use.
1089 1090 1091 |
# File 'lib/models/porcelain.rb', line 1089 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
1091 1092 1093 |
# File 'lib/models/porcelain.rb', line 1091 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1103 1104 1105 1106 1107 1108 1109 |
# File 'lib/models/porcelain.rb', line 1103 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 |