Class: Mkmapi::Agent

Inherits:
Struct
  • Object
show all
Defined in:
lib/mkmapi/agent.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#authObject

Returns the value of attribute auth

Returns:

  • (Object)

    the current value of auth



5
6
7
# File 'lib/mkmapi/agent.rb', line 5

def auth
  @auth
end

#connectionObject

Returns the value of attribute connection

Returns:

  • (Object)

    the current value of connection



5
6
7
# File 'lib/mkmapi/agent.rb', line 5

def connection
  @connection
end

#lastObject (readonly)

Returns the value of attribute last.



6
7
8
# File 'lib/mkmapi/agent.rb', line 6

def last
  @last
end

Instance Method Details

#delete(path) ⇒ Object

Raises:

  • (NotImplementedError)


20
21
22
# File 'lib/mkmapi/agent.rb', line 20

def delete(path)
  raise NotImplementedError
end

#get(path, query_params = {}) ⇒ Object



8
9
10
# File 'lib/mkmapi/agent.rb', line 8

def get(path, query_params = {})
  process(:get, path, query_params)
end

#post(path, body) ⇒ Object

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/mkmapi/agent.rb', line 16

def post(path, body)
  raise NotImplementedError
end

#put(path, body) ⇒ Object

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/mkmapi/agent.rb', line 12

def put(path, body)
  raise NotImplementedError
end