Class: UnforBaseApi
- Inherits:
-
Object
- Object
- UnforBaseApi
- Defined in:
- lib/unfor_base_api.rb
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ UnforBaseApi
constructor
A new instance of UnforBaseApi.
- #last_response ⇒ Object
- #last_result ⇒ Object
Constructor Details
#initialize(args = {}) ⇒ UnforBaseApi
Returns a new instance of UnforBaseApi.
8 9 10 11 12 13 14 15 |
# File 'lib/unfor_base_api.rb', line 8 def initialize(args={}) @endpoint = args[:endpoint] @access_token = args[:access_token] if @endpoint.blank? raise 'endpoint is required!' end end |
Instance Method Details
#last_response ⇒ Object
17 18 19 |
# File 'lib/unfor_base_api.rb', line 17 def last_response @last_response end |
#last_result ⇒ Object
21 22 23 |
# File 'lib/unfor_base_api.rb', line 21 def last_result @last_result end |