class HaveAPI::Resources::ActionState::Index

Public Instance Methods

exec() click to toggle source
# File lib/haveapi/resources/action_state.rb, line 63
def exec
  actions = @context.server.action_state.list_pending(
    current_user,
    input[:from_id],
    input[:limit],
    input[:order].to_sym
  )

  actions.map do |state|
    state_to_hash(state)
  end
end