Class: TMSAPI::Resource::Base
- Inherits:
-
Object
- Object
- TMSAPI::Resource::Base
- Defined in:
- lib/tmsapi/resource/base.rb
Instance Method Summary collapse
- #get(path, options = {}) ⇒ Object
-
#initialize(connection, version, options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(connection, version, options = {}) ⇒ Base
Returns a new instance of Base.
4 5 6 7 |
# File 'lib/tmsapi/resource/base.rb', line 4 def initialize(connection, version, = {}) @connection = connection @version = version end |
Instance Method Details
#get(path, options = {}) ⇒ Object
9 10 11 |
# File 'lib/tmsapi/resource/base.rb', line 9 def get(path, ={}) @connection.get(full_path(path), ).body end |