class ATM::Services::Base

ATM::Services::Base Base class for all of the services

@attr_reader [] response - holds data after post/put/delete/get submited @attr_reader [Hash] header - access token for authentication @attr_reader [String] project_id - user set project id

Attributes

auth_header[R]
response[R]

Public Class Methods

new(**options) click to toggle source
# File lib/atm_ruby/helpers/base_service.rb, line 21
def initialize(**options)
  self.class.base_uri options[:base_url]
  @auth_header = options[:auth_header]
end

Public Instance Methods

set_response(new_response) click to toggle source
# File lib/atm_ruby/helpers/base_service.rb, line 26
def set_response(new_response)
  @response = new_response
end