Class: Melitta::Coercers::MissingInput

Inherits:
Struct
  • Object
show all
Defined in:
lib/melitta/coercers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#inputObject

Returns the value of attribute input

Returns:

  • (Object)

    the current value of input



140
141
142
# File 'lib/melitta/coercers.rb', line 140

def input
  @input
end

Instance Method Details

#errorsObject



142
143
144
# File 'lib/melitta/coercers.rb', line 142

def errors
  I18n.t("errors.coercers.missing_input")
end

#outputObject



150
151
152
# File 'lib/melitta/coercers.rb', line 150

def output
  input
end

#valid?Boolean

Returns:



146
147
148
# File 'lib/melitta/coercers.rb', line 146

def valid?
  false
end