Class: ContextIO::ConnectToken
- Inherits:
-
Object
- Object
- ContextIO::ConnectToken
- Includes:
- CallHelpers
- Defined in:
- lib/context_io/shared/connect_token.rb
Constant Summary collapse
- CONNECT_READERS =
%I(email source_callback_url source_raw_file_list created used expires status_callback_url first_name last_name account resource_url server_label callback_url browser_redirect_url)
Instance Attribute Summary collapse
-
#api_call_made ⇒ Object
Returns the value of attribute api_call_made.
Instance Method Summary collapse
- #call_url ⇒ Object
-
#initialize(parent:, identifier: nil, response: nil, status: nil, success: nil, api_call_made: nil) ⇒ ConnectToken
constructor
A new instance of ConnectToken.
Methods included from CallHelpers
#build_url, #call_api_return_new_object, #call_api_return_updated_object, #delete, #get, #get_request, #parse_response, #return_post_api_call_made, #success?, #validate_params
Methods included from CollectionHelper
#collection_return, #contact_collection_return
Constructor Details
#initialize(parent:, identifier: nil, response: nil, status: nil, success: nil, api_call_made: nil) ⇒ ConnectToken
Returns a new instance of ConnectToken.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/context_io/shared/connect_token.rb', line 13 def initialize(parent:, identifier: nil, response: nil, status: nil, success: nil, api_call_made: nil) @parent = parent @connection = parent.connection @token = identifier @response = response @status = status @success = success @api_call_made = api_call_made if response parse_response(response) end end |
Instance Attribute Details
#api_call_made ⇒ Object
Returns the value of attribute api_call_made.
11 12 13 |
# File 'lib/context_io/shared/connect_token.rb', line 11 def api_call_made @api_call_made end |
Instance Method Details
#call_url ⇒ Object
31 32 33 |
# File 'lib/context_io/shared/connect_token.rb', line 31 def call_url build_url("connect_tokens", token) end |