class HaveAPI::Resources::ActionState::Show

Public Instance Methods

exec() click to toggle source
# File lib/haveapi/resources/action_state.rb, line 140
def exec
  state = @context.server.action_state.new(
    current_user,
    id: params[:action_state_id]
  )

  return state_to_hash(state) if state.valid?

  error!('action state not found')
end