Class: Geminabox::HttpAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/geminabox/http_adapter.rb

Direct Known Subclasses

HttpClientAdapter, TemplateFaradayAdapter

Instance Method Summary collapse

Instance Method Details

#get(*args) ⇒ Object


10
11
12
# File 'lib/geminabox/http_adapter.rb', line 10

def get(*args)
  raise HttpAdapterConfigError.new(:get, 'a response object')
end

#get_content(*args) ⇒ Object


6
7
8
# File 'lib/geminabox/http_adapter.rb', line 6

def get_content(*args)
  raise HttpAdapterConfigError.new(:get_content, 'the response body')
end

#post(*args) ⇒ Object


14
15
16
# File 'lib/geminabox/http_adapter.rb', line 14

def post(*args)
  raise HttpAdapterConfigError.new(:post, 'a response object')
end

#set_auth(*args) ⇒ Object


18
19
20
# File 'lib/geminabox/http_adapter.rb', line 18

def set_auth(*args)
  raise HttpAdapterConfigError.new(:set_auth, 'true')
end