Class: SDM::AccountGrantGetResponse
- Inherits:
-
Object
- Object
- SDM::AccountGrantGetResponse
- Defined in:
- lib/models/porcelain.rb
Overview
AccountGrantGetResponse returns a requested AccountGrant.
Instance Attribute Summary collapse
-
#account_grant ⇒ Object
The requested 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) ⇒ AccountGrantGetResponse
constructor
A new instance of AccountGrantGetResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(account_grant: nil, meta: nil, rate_limit: nil) ⇒ AccountGrantGetResponse
Returns a new instance of AccountGrantGetResponse.
893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 |
# File 'lib/models/porcelain.rb', line 893 def initialize( account_grant: nil, meta: nil, rate_limit: nil ) if account_grant != nil @account_grant = account_grant end if != nil @meta = end if rate_limit != nil @rate_limit = rate_limit end end |
Instance Attribute Details
#account_grant ⇒ Object
The requested AccountGrant.
887 888 889 |
# File 'lib/models/porcelain.rb', line 887 def account_grant @account_grant end |
#meta ⇒ Object
Reserved for future use.
889 890 891 |
# File 'lib/models/porcelain.rb', line 889 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
891 892 893 |
# File 'lib/models/porcelain.rb', line 891 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
909 910 911 912 913 914 915 |
# File 'lib/models/porcelain.rb', line 909 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 |