Class: FormObject::Base::MappingInformation

Inherits:
Struct
  • Object
show all
Defined in:
lib/form_object/base/mapping_information.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#formObject

Returns the value of attribute form

Returns:

  • (Object)

    the current value of form



3
4
5
# File 'lib/form_object/base/mapping_information.rb', line 3

def form
  @form
end

#modelObject

Returns the value of attribute model

Returns:

  • (Object)

    the current value of model



3
4
5
# File 'lib/form_object/base/mapping_information.rb', line 3

def model
  @model
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



3
4
5
# File 'lib/form_object/base/mapping_information.rb', line 3

def name
  @name
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



3
4
5
# File 'lib/form_object/base/mapping_information.rb', line 3

def options
  @options
end

Instance Method Details

#match?(critery = {}) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
8
9
10
# File 'lib/form_object/base/mapping_information.rb', line 5

def match?( critery = {} )
  critery.each do |k, v|
    return false unless self[k] == v
  end
  true
end