Class: TMSAPI::Resource::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/tmsapi/resource/base.rb

Instance Method Summary collapse

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, options = {})
  @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, options={})
  @connection.get(full_path(path), options).body
end