Class: Presentation::FieldSearch::Field

Inherits:
Object
  • Object
show all
Includes:
Presenting::Configurable
Defined in:
lib/presentation/field_search.rb

Instance Attribute Summary collapse

Method Summary

Methods included from Presenting::Configurable

#initialize

Instance Attribute Details

#nameObject

the display name of the field.



37
38
39
# File 'lib/presentation/field_search.rb', line 37

def name
  @name
end

#optionsObject

extra options for the field.



61
62
63
# File 'lib/presentation/field_search.rb', line 61

def options
  @options ||= {}
end

#paramObject

the parameter name of the field. note that this is not necessarily the name of a database column or record attribute. it simply needs to be recognized as a “field” by the controller logic.



44
45
46
# File 'lib/presentation/field_search.rb', line 44

def param
  @param
end

#typeObject

the type of search interface for this field. supported options:

  • :text (default)

  • :checkbox

  • :time [planned]

  • :list [planned]



55
56
57
# File 'lib/presentation/field_search.rb', line 55

def type
  @type ||= :text
end