class ClioClient::Api::Activity

Private Instance Methods

data_klass(attributes) click to toggle source
# File lib/clio_client/api/activity.rb, line 10
def data_klass(attributes)
  accepted_types = %w(TimeEntry ExpenseEntry)
  type = attributes["type"] || attributes[:type]
  if accepted_types.include? type
    ClioClient.const_get type
  else
    ClioClient::Activity
  end
end
end_point_url() click to toggle source
# File lib/clio_client/api/activity.rb, line 20
def end_point_url;     'activities';  end
plural_resource() click to toggle source
# File lib/clio_client/api/activity.rb, line 21
def plural_resource;   'activities';  end
singular_resource() click to toggle source
# File lib/clio_client/api/activity.rb, line 22
def singular_resource; 'activity';    end