class Assembla::Client::Activity

Constants

TIME_REGEXP
VALID_REQUEST_PARAM_NAMES
VALID_REQUEST_PARAM_VALUES

Public Instance Methods

list(*args) { |el| ... } click to toggle source
# File lib/assembla_api/client/activity.rb, line 18
def list(*args)
  arguments(args) do
    permit VALID_REQUEST_PARAM_NAMES
    assert_values VALID_REQUEST_PARAM_VALUES
  end

  response = get_request("/activity", arguments.params)
  return response unless block_given?
  response.each { |el| yield el }
end