Class: DonationSearch
- Inherits:
-
Object
- Object
- DonationSearch
- Defined in:
- app/models/donation_search.rb
Instance Attribute Summary collapse
-
#start ⇒ Object
readonly
Returns the value of attribute start.
-
#stop ⇒ Object
readonly
Returns the value of attribute stop.
Instance Method Summary collapse
-
#initialize(start, stop, organization) ⇒ DonationSearch
constructor
A new instance of DonationSearch.
- #results ⇒ Object
Constructor Details
#initialize(start, stop, organization) ⇒ DonationSearch
Returns a new instance of DonationSearch.
5 6 7 8 9 10 |
# File 'app/models/donation_search.rb', line 5 def initialize(start, stop, organization) @organization = organization @start = start_with(start) @stop = stop_with(stop) @results = yield(results) if block_given? end |
Instance Attribute Details
#start ⇒ Object (readonly)
Returns the value of attribute start.
3 4 5 |
# File 'app/models/donation_search.rb', line 3 def start @start end |
#stop ⇒ Object (readonly)
Returns the value of attribute stop.
3 4 5 |
# File 'app/models/donation_search.rb', line 3 def stop @stop end |