Class: MVM::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/mvm/client.rb

Constant Summary collapse

SERVER_SCHEME =
'https'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host) ⇒ Client

Returns a new instance of Client.



9
10
11
# File 'lib/mvm/client.rb', line 9

def initialize(host)
  @host = host
end

Instance Attribute Details

#hostObject (readonly)

Returns the value of attribute host.



7
8
9
# File 'lib/mvm/client.rb', line 7

def host
  @host
end

Instance Method Details

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



13
14
15
# File 'lib/mvm/client.rb', line 13

def get(path, options = {})
  request(:get, path, options)
end

#post(path, options = {}) ⇒ Object



17
18
19
# File 'lib/mvm/client.rb', line 17

def post(path, options = {})
  request(:post, path, options)
end