class Forerunner::ActionData::InvalidActionTypeError

Attributes

action_type[R]

Public Class Methods

new(action_type) click to toggle source
# File lib/forerunner/action_data/invalid_action_type_error.rb, line 6
def initialize(action_type)
  @action_type = action_type
end

Public Instance Methods

to_s() click to toggle source
# File lib/forerunner/action_data/invalid_action_type_error.rb, line 10
def to_s
  "Invalid action type `#{action_type}`. Valid types include #{valid_types}."
end

Private Instance Methods

valid_types() click to toggle source
# File lib/forerunner/action_data/invalid_action_type_error.rb, line 16
def valid_types
  Forerunner::ActionData::VALID_ACTION_TYPES.map do |valid_type|
    "`#{valid_type}`"
  end.to_sentence
end