Class: FormObject::Base::MappingInformation
- Inherits:
-
Struct
- Object
- Struct
- FormObject::Base::MappingInformation
- Defined in:
- lib/form_object/base/mapping_information.rb
Instance Attribute Summary collapse
-
#form ⇒ Object
Returns the value of attribute form.
-
#model ⇒ Object
Returns the value of attribute model.
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
Instance Attribute Details
#form ⇒ Object
Returns the value of attribute form
3 4 5 |
# File 'lib/form_object/base/mapping_information.rb', line 3 def form @form end |
#model ⇒ Object
Returns the value of attribute model
3 4 5 |
# File 'lib/form_object/base/mapping_information.rb', line 3 def model @model end |
#name ⇒ Object
Returns the value of attribute name
3 4 5 |
# File 'lib/form_object/base/mapping_information.rb', line 3 def name @name end |
#options ⇒ Object
Returns the value of attribute options
3 4 5 |
# File 'lib/form_object/base/mapping_information.rb', line 3 def @options end |
Instance Method Details
#match?(critery = {}) ⇒ 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 |