Class: Graphlient::Adapters::HTTP::Adapter
- Inherits:
-
Object
- Object
- Graphlient::Adapters::HTTP::Adapter
- Defined in:
- lib/graphlient/adapters/http/adapter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
- #execute ⇒ Object
- #headers ⇒ Object
- #http_options ⇒ Object
-
#initialize(url, options = {}) {|_self| ... } ⇒ Adapter
constructor
A new instance of Adapter.
Constructor Details
#initialize(url, options = {}) {|_self| ... } ⇒ Adapter
Returns a new instance of Adapter.
7 8 9 10 11 |
# File 'lib/graphlient/adapters/http/adapter.rb', line 7 def initialize(url, = {}, &_block) @url = url @options = .dup if yield self if block_given? end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
5 6 7 |
# File 'lib/graphlient/adapters/http/adapter.rb', line 5 def @options end |
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/graphlient/adapters/http/adapter.rb', line 5 def url @url end |
Instance Method Details
#execute ⇒ Object
23 24 25 |
# File 'lib/graphlient/adapters/http/adapter.rb', line 23 def execute(*) raise NotImplementedError end |
#headers ⇒ Object
13 14 15 |
# File 'lib/graphlient/adapters/http/adapter.rb', line 13 def headers [:headers] if end |
#http_options ⇒ Object
17 18 19 20 21 |
# File 'lib/graphlient/adapters/http/adapter.rb', line 17 def return {} unless [:http_options] || {} end |