Class: DwollaSwagger::OAuthResponse
- Inherits:
-
BaseObject
- Object
- BaseObject
- DwollaSwagger::OAuthResponse
- Defined in:
- lib/dwolla_swagger/models/o_auth_response.rb
Instance Attribute Summary collapse
-
#_links ⇒ Object
Returns the value of attribute _links.
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#expires_in ⇒ Object
Returns the value of attribute expires_in.
-
#refresh_expires_in ⇒ Object
Returns the value of attribute refresh_expires_in.
-
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#token_type ⇒ Object
Returns the value of attribute token_type.
Class Method Summary collapse
-
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ OAuthResponse
constructor
A new instance of OAuthResponse.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash
Constructor Details
#initialize(attributes = {}) ⇒ OAuthResponse
Returns a new instance of OAuthResponse.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/dwolla_swagger/models/o_auth_response.rb', line 47 def initialize(attributes = {}) return if !attributes.is_a?(Hash) || attributes.empty? # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'_links'] if (value = attributes[:'_links']).is_a?(Array) @_links = value end end if attributes[:'access_token'] @access_token = attributes[:'access_token'] end if attributes[:'expires_in'] @expires_in = attributes[:'expires_in'] end if attributes[:'refresh_token'] @refresh_token = attributes[:'refresh_token'] end if attributes[:'refresh_expires_in'] @refresh_expires_in = attributes[:'refresh_expires_in'] end if attributes[:'token_type'] @token_type = attributes[:'token_type'] end if attributes[:'scope'] @scope = attributes[:'scope'] end end |
Instance Attribute Details
#_links ⇒ Object
Returns the value of attribute _links.
4 5 6 |
# File 'lib/dwolla_swagger/models/o_auth_response.rb', line 4 def _links @_links end |
#access_token ⇒ Object
Returns the value of attribute access_token.
4 5 6 |
# File 'lib/dwolla_swagger/models/o_auth_response.rb', line 4 def access_token @access_token end |
#expires_in ⇒ Object
Returns the value of attribute expires_in.
4 5 6 |
# File 'lib/dwolla_swagger/models/o_auth_response.rb', line 4 def expires_in @expires_in end |
#refresh_expires_in ⇒ Object
Returns the value of attribute refresh_expires_in.
4 5 6 |
# File 'lib/dwolla_swagger/models/o_auth_response.rb', line 4 def refresh_expires_in @refresh_expires_in end |
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
4 5 6 |
# File 'lib/dwolla_swagger/models/o_auth_response.rb', line 4 def refresh_token @refresh_token end |
#scope ⇒ Object
Returns the value of attribute scope.
4 5 6 |
# File 'lib/dwolla_swagger/models/o_auth_response.rb', line 4 def scope @scope end |
#token_type ⇒ Object
Returns the value of attribute token_type.
4 5 6 |
# File 'lib/dwolla_swagger/models/o_auth_response.rb', line 4 def token_type @token_type end |
Class Method Details
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/dwolla_swagger/models/o_auth_response.rb', line 6 def self.attribute_map { # :'_links' => :'_links', # :'access_token' => :'access_token', # :'expires_in' => :'expires_in', # :'refresh_token' => :'refresh_token', # :'refresh_expires_in' => :'refresh_expires_in', # :'token_type' => :'token_type', # :'scope' => :'scope' } end |
.swagger_types ⇒ Object
attribute type
34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/dwolla_swagger/models/o_auth_response.rb', line 34 def self.swagger_types { :'_links' => :'map[string,HalLink]', :'access_token' => :'string', :'expires_in' => :'double', :'refresh_token' => :'string', :'refresh_expires_in' => :'double', :'token_type' => :'string', :'scope' => :'string' } end |