Class: Dyndrop::V1::Base
- Inherits:
-
BaseClient
- Object
- BaseClient
- Dyndrop::V1::Base
- Defined in:
- lib/dyndrop/v1/base.rb
Instance Attribute Summary
Attributes inherited from BaseClient
Instance Method Summary collapse
-
#create_user(payload) ⇒ Object
Users.
- #get_token(email, payload) ⇒ Object
-
#instances(name) ⇒ Object
Applications.
Methods inherited from BaseClient
#delete, #get, #info, #initialize, #post, #put, #request, #request_raw, #stream_url, #token=, #trace=
Constructor Details
This class inherits a constructor from Dyndrop::BaseClient
Instance Method Details
#create_user(payload) ⇒ Object
Users
16 17 18 19 |
# File 'lib/dyndrop/v1/base.rb', line 16 def create_user(payload) # no JSON response post("users", :content => :json, :payload => payload) end |
#get_token(email, payload) ⇒ Object
11 12 13 |
# File 'lib/dyndrop/v1/base.rb', line 11 def get_token(email, payload) post("1", "users", email, "tokens", :content => :json, :accept => :json, :payload => payload) end |
#instances(name) ⇒ Object
Applications
22 23 24 |
# File 'lib/dyndrop/v1/base.rb', line 22 def instances(name) get("apps", name, "instances", :accept => :json)[:instances] end |