Class: ContextIO::Sync
- Inherits:
-
Object
- Object
- ContextIO::Sync
- Includes:
- CallHelpers
- Defined in:
- lib/context_io/account/sync.rb
Instance Attribute Summary collapse
-
#api_call_made ⇒ Object
readonly
Returns the value of attribute api_call_made.
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
Instance Method Summary collapse
- #call_url ⇒ Object
- #get ⇒ Object
-
#initialize(parent:, response: nil, status: nil, success: nil, api_call_made: nil) ⇒ Sync
constructor
A new instance of Sync.
Methods included from CallHelpers
#build_url, #call_api_return_new_object, #call_api_return_updated_object, #delete, #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:, response: nil, status: nil, success: nil, api_call_made: nil) ⇒ Sync
Returns a new instance of Sync.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/context_io/account/sync.rb', line 9 def initialize(parent:, response: nil, status: nil, success: nil, api_call_made: nil) @parent = parent @connection = parent.connection @response = response @status = status @success = success @api_call_made = api_call_made end |
Instance Attribute Details
#api_call_made ⇒ Object (readonly)
Returns the value of attribute api_call_made.
8 9 10 |
# File 'lib/context_io/account/sync.rb', line 8 def api_call_made @api_call_made end |
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
8 9 10 |
# File 'lib/context_io/account/sync.rb', line 8 def connection @connection end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
8 9 10 |
# File 'lib/context_io/account/sync.rb', line 8 def response @response end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
8 9 10 |
# File 'lib/context_io/account/sync.rb', line 8 def status @status end |
#success ⇒ Object (readonly)
Returns the value of attribute success.
8 9 10 |
# File 'lib/context_io/account/sync.rb', line 8 def success @success end |
Instance Method Details
#call_url ⇒ Object
22 23 24 |
# File 'lib/context_io/account/sync.rb', line 22 def call_url "#{parent.call_url}/sync" end |