Class: MVM::Client
- Inherits:
-
Object
- Object
- MVM::Client
- Defined in:
- lib/mvm/client.rb
Constant Summary collapse
- SERVER_SCHEME =
'https'
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
Instance Method Summary collapse
- #get(path, options = {}) ⇒ Object
-
#initialize(host) ⇒ Client
constructor
A new instance of Client.
- #post(path, options = {}) ⇒ Object
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
#host ⇒ Object (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, = {}) request(:get, path, ) end |
#post(path, options = {}) ⇒ Object
17 18 19 |
# File 'lib/mvm/client.rb', line 17 def post(path, = {}) request(:post, path, ) end |