class TMSAPI::Resource::Base
Public Class Methods
new(connection, version, options = {})
click to toggle source
# File lib/tmsapi/resource/base.rb, line 4 def initialize(connection, version, options = {}) @connection = connection @version = version end
Public Instance Methods
get(path, options={})
click to toggle source
# File lib/tmsapi/resource/base.rb, line 9 def get(path, options={}) @connection.get(full_path(path), options).body end
Private Instance Methods
full_path(path)
click to toggle source
# File lib/tmsapi/resource/base.rb, line 15 def full_path(path) "#{@version}/#{path}" end