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