Class: Nebula::Client
- Inherits:
-
Object
- Object
- Nebula::Client
- Defined in:
- lib/nebula/client.rb
Instance Attribute Summary collapse
-
#request(type, path, params = {}) ⇒ Object
Returns the value of attribute request.
-
#url ⇒ Object
writeonly
Sets the attribute url.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
8 9 10 11 12 |
# File 'lib/nebula/client.rb', line 8 def initialize(={}) @token = [:token] @url = [:url] @base_path = [:base_path] end |
Instance Attribute Details
#request(type, path, params = {}) ⇒ Object
Returns the value of attribute request.
6 7 8 |
# File 'lib/nebula/client.rb', line 6 def request @request end |
#url=(value) ⇒ Object
Sets the attribute url
6 7 8 |
# File 'lib/nebula/client.rb', line 6 def url=(value) @url = value end |