Class: Skink::Client::Base

Inherits:
Object
  • Object
show all
Includes:
Utils
Defined in:
lib/skink/client/base.rb

Direct Known Subclasses

RackTestClient, ResourcefulClient

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/)
    with_header(normalize_header_name($1), *args)
  else
    super(name, *args)
  end
end

Instance Method Details

#connect(path) ⇒ Object

Raises:

  • (NotImplementedError)


46
47
48
# File 'lib/skink/client/base.rb', line 46

def connect(path)
  raise NotImplementedError
end

#delete(path) ⇒ Object

Raises:

  • (NotImplementedError)


34
35
36
# File 'lib/skink/client/base.rb', line 34

def delete(path)
  raise NotImplementedError
end

#get(path) ⇒ Object

Raises:

  • (NotImplementedError)


22
23
24
# File 'lib/skink/client/base.rb', line 22

def get(path)
  raise NotImplementedError
end

#head(path) ⇒ Object

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/skink/client/base.rb', line 18

def head(path)
  raise NotImplementedError
end

#options(path) ⇒ Object

Raises:

  • (NotImplementedError)


42
43
44
# File 'lib/skink/client/base.rb', line 42

def options(path)
  raise NotImplementedError
end

#patch(path, body = nil) ⇒ Object

Raises:

  • (NotImplementedError)


50
51
52
# File 'lib/skink/client/base.rb', line 50

def patch(path, body = nil)
  raise NotImplementedError
end

#post(path, body = nil) ⇒ Object

Raises:

  • (NotImplementedError)


26
27
28
# File 'lib/skink/client/base.rb', line 26

def post(path, body = nil)
  raise NotImplementedError
end

#put(path, body) ⇒ Object

Raises:

  • (NotImplementedError)


30
31
32
# File 'lib/skink/client/base.rb', line 30

def put(path, body)
  raise NotImplementedError
end

#responseObject

Raises:

  • (NotImplementedError)


54
55
56
# File 'lib/skink/client/base.rb', line 54

def response
  raise NotImplementedError
end

#trace(path) ⇒ Object

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/skink/client/base.rb', line 14

def with_basic_auth(user_name, email_address, realm = nil)
  raise NotImplementedError
end

#with_header(name, value) ⇒ Object

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/skink/client/base.rb', line 10

def with_header(name, value)
  raise NotImplementedError
end