Class: Skink::Client::Base
- Inherits:
-
Object
- Object
- Skink::Client::Base
show all
- Includes:
- Utils
- Defined in:
- lib/skink/client/base.rb
Instance Method Summary
collapse
Methods included from Utils
#normalize_header_name
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
58
59
60
61
62
63
64
|
# File 'lib/skink/client/base.rb', line 58
def method_missing(name, *args)
if name.match(/with_(\w+)_header/)
(($1), *args)
else
super(name, *args)
end
end
|
Instance Method Details
#connect(path) ⇒ Object
46
47
48
|
# File 'lib/skink/client/base.rb', line 46
def connect(path)
raise NotImplementedError
end
|
#delete(path) ⇒ Object
34
35
36
|
# File 'lib/skink/client/base.rb', line 34
def delete(path)
raise NotImplementedError
end
|
#get(path) ⇒ Object
22
23
24
|
# File 'lib/skink/client/base.rb', line 22
def get(path)
raise NotImplementedError
end
|
#head(path) ⇒ Object
18
19
20
|
# File 'lib/skink/client/base.rb', line 18
def head(path)
raise NotImplementedError
end
|
#options(path) ⇒ Object
42
43
44
|
# File 'lib/skink/client/base.rb', line 42
def options(path)
raise NotImplementedError
end
|
#patch(path, body = nil) ⇒ Object
50
51
52
|
# File 'lib/skink/client/base.rb', line 50
def patch(path, body = nil)
raise NotImplementedError
end
|
#post(path, body = nil) ⇒ Object
26
27
28
|
# File 'lib/skink/client/base.rb', line 26
def post(path, body = nil)
raise NotImplementedError
end
|
#put(path, body) ⇒ Object
30
31
32
|
# File 'lib/skink/client/base.rb', line 30
def put(path, body)
raise NotImplementedError
end
|
#response ⇒ Object
54
55
56
|
# File 'lib/skink/client/base.rb', line 54
def response
raise NotImplementedError
end
|
#trace(path) ⇒ Object
38
39
40
|
# File 'lib/skink/client/base.rb', line 38
def trace(path)
raise NotImplementedError
end
|
#with_basic_auth(user_name, email_address, realm = nil) ⇒ Object
14
15
16
|
# File 'lib/skink/client/base.rb', line 14
def with_basic_auth(user_name, email_address, realm = nil)
raise NotImplementedError
end
|
10
11
12
|
# File 'lib/skink/client/base.rb', line 10
def (name, value)
raise NotImplementedError
end
|