Class: Ivapi::Client::Base
- Inherits:
-
Object
- Object
- Ivapi::Client::Base
- Defined in:
- lib/ivapi/client/base.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #get(path, options = {}) ⇒ Object
-
#initialize(client) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(client) ⇒ Base
Returns a new instance of Base.
6 7 8 |
# File 'lib/ivapi/client/base.rb', line 6 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
4 5 6 |
# File 'lib/ivapi/client/base.rb', line 4 def client @client end |
Instance Method Details
#get(path, options = {}) ⇒ Object
10 11 12 |
# File 'lib/ivapi/client/base.rb', line 10 def get(path, = {}) request(:get, path, ).body end |