Class: HaveAPI::Fs::Components::IndexFilter
- Inherits:
-
Directory
- Object
- HaveAPI::Fs::Component
- Directory
- HaveAPI::Fs::Components::IndexFilter
- Defined in:
- lib/haveapi/fs/components/index_filter.rb
Constant Summary
Constants included from Help
Instance Attribute Summary collapse
-
#filters ⇒ Object
readonly
Returns the value of attribute filters.
-
#param ⇒ Object
readonly
Returns the value of attribute param.
-
#resource_dir ⇒ Object
readonly
Returns the value of attribute resource_dir.
Attributes inherited from HaveAPI::Fs::Component
#atime, #context, #ctime, #mtime
Instance Method Summary collapse
-
#initialize(resource_dir, param, filters = {}) ⇒ IndexFilter
constructor
A new instance of IndexFilter.
- #title ⇒ Object
Methods inherited from Directory
Methods included from Help
Methods inherited from HaveAPI::Fs::Component
#abspath, #bound=, #bound?, children_reader, component, #contents, #directory?, #executable?, #file?, #find, inherited, #invalid?, #invalidate, #parent, #path, #readable?, #reset, #setup, #times, #unsaved?, #use, #writable?
Constructor Details
#initialize(resource_dir, param, filters = {}) ⇒ IndexFilter
Returns a new instance of IndexFilter.
6 7 8 9 10 11 12 |
# File 'lib/haveapi/fs/components/index_filter.rb', line 6 def initialize(resource_dir, param, filters = {}) super() @resource_dir = resource_dir @param = param @filters = filters end |
Instance Attribute Details
#filters ⇒ Object (readonly)
Returns the value of attribute filters.
4 5 6 |
# File 'lib/haveapi/fs/components/index_filter.rb', line 4 def filters @filters end |
#param ⇒ Object (readonly)
Returns the value of attribute param.
4 5 6 |
# File 'lib/haveapi/fs/components/index_filter.rb', line 4 def param @param end |
#resource_dir ⇒ Object (readonly)
Returns the value of attribute resource_dir.
4 5 6 |
# File 'lib/haveapi/fs/components/index_filter.rb', line 4 def resource_dir @resource_dir end |
Instance Method Details
#title ⇒ Object
14 15 16 |
# File 'lib/haveapi/fs/components/index_filter.rb', line 14 def title "Filter by #{@param}" end |