Method: Billomat::Models::Base#respond_to_missing?

Defined in:
lib/billomat/models/base.rb

#respond_to_missing?(method, include_privat = false) ⇒ TrueClass, FalseClass

Necessary for method_missing.

Parameters:

  • method (Symbol)

    The method name

  • include_privat (TrueClass, FalseClass) (defaults to: false)

Returns:

  • (TrueClass, FalseClass)


127
128
129
# File 'lib/billomat/models/base.rb', line 127

def respond_to_missing?(method, include_privat = false)
  @data.to_h.key?(method.to_s) || super
end