Class: Gillbus::V2::Responses::Authenticate
- Defined in:
- lib/gillbus/v2/responses/authenticate.rb
Instance Attribute Summary
Attributes inherited from Base
#http_body, #http_headers, #http_status
Instance Method Summary collapse
Methods inherited from Base
#error_code, #error_message, #initialize, #json_body
Constructor Details
This class inherits a constructor from Gillbus::V2::Responses::Base
Instance Method Details
#access_token ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/gillbus/v2/responses/authenticate.rb', line 8 def access_token return @access_token if defined?(@access_token) @access_token = if json_body["access_token"] Structs::AccessToken.from_raw_data(json_body) end end |
#success? ⇒ Boolean
4 5 6 |
# File 'lib/gillbus/v2/responses/authenticate.rb', line 4 def success? http_status == 200 && !access_token.nil? end |