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.
1132 1133 1134 1135 1136 1137 1138 1139 1140 |
# File 'lib/models/porcelain.rb', line 1132 def initialize( account_grant: nil, meta: nil, rate_limit: nil ) @account_grant = account_grant == nil ? nil : account_grant = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#account_grant ⇒ Object
The created AccountGrant.
1126 1127 1128 |
# File 'lib/models/porcelain.rb', line 1126 def account_grant @account_grant end |
#meta ⇒ Object
Reserved for future use.
1128 1129 1130 |
# File 'lib/models/porcelain.rb', line 1128 def end |
#rate_limit ⇒ Object
Rate limit information.
1130 1131 1132 |
# File 'lib/models/porcelain.rb', line 1130 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1142 1143 1144 1145 1146 1147 1148 |
# File 'lib/models/porcelain.rb', line 1142 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 |