Class: Apis::Adapter::Abstract
- Inherits:
-
Object
- Object
- Apis::Adapter::Abstract
- Defined in:
- lib/apis/adapter/abstract.rb
Defined Under Namespace
Classes: NotImplemented
Instance Attribute Summary collapse
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Abstract
constructor
A new instance of Abstract.
-
#run(method, path, params = {}, headers = {}) ⇒ Array
Performs request to resource.
Constructor Details
#initialize(options = {}) ⇒ Abstract
Returns a new instance of Abstract.
8 9 10 11 12 |
# File 'lib/apis/adapter/abstract.rb', line 8 def initialize( = {}) .each do |key, value| send("#{key}=", value) if respond_to?("#{key}=") end end |
Instance Attribute Details
#uri ⇒ Object
Returns the value of attribute uri.
6 7 8 |
# File 'lib/apis/adapter/abstract.rb', line 6 def uri @uri end |
Instance Method Details
#run(method, path, params = {}, headers = {}) ⇒ Array
Performs request to resource
22 23 24 |
# File 'lib/apis/adapter/abstract.rb', line 22 def run(method, path, params = {}, headers = {}) raise Apis::Adapter::Abstract::NotImplemented end |