module Wrike3::Common

Attributes

wrike[RW]

Private Instance Methods

api_url(path) click to toggle source
# File lib/wrike3/common.rb, line 7
def api_url(path)
  "#{wrike.base_url}/#{path}"
end
nested_path(path = '', type = nil, id = nil) click to toggle source
# File lib/wrike3/common.rb, line 11
def nested_path(path = '', type = nil, id = nil)
  path = "#{type}/#{id}/#{path}" if type.present? && id.present?
  path
end