Class: EventFindaRuby::Events
- Inherits:
-
Base
- Object
- Base
- EventFindaRuby::Events
show all
- Defined in:
- lib/event_finda_ruby/events.rb
Constant Summary
collapse
- RESOURCE_SLUG =
"events".freeze
Constants inherited
from Base
Base::BASE_URL
Instance Attribute Summary
Attributes inherited from Base
#api_extension, #filters
Instance Method Summary
collapse
Methods inherited from Base
#by_keywords_and, #by_keywords_or, #by_query, #by_rows, #initialize, #results, #url, #with_extension
Constructor Details
This class inherits a constructor from Base
Instance Method Details
#by_end_date(end_date) ⇒ Object
6
7
8
9
10
|
# File 'lib/event_finda_ruby/events.rb', line 6
def by_end_date(end_date)
apply_filter "end_date", end_date
self
end
|
#by_featured ⇒ Object
12
13
14
15
16
|
# File 'lib/event_finda_ruby/events.rb', line 12
def by_featured
apply_filter "featured", 1
self
end
|
#by_free ⇒ Object
18
19
20
21
22
|
# File 'lib/event_finda_ruby/events.rb', line 18
def by_free
apply_filter "free", 1
self
end
|
#by_price_max(price_max) ⇒ Object
24
25
26
27
28
|
# File 'lib/event_finda_ruby/events.rb', line 24
def by_price_max(price_max)
apply_filter "price_max", price_max
self
end
|
#by_price_min(price_min) ⇒ Object
30
31
32
33
34
|
# File 'lib/event_finda_ruby/events.rb', line 30
def by_price_min(price_min)
apply_filter "price_min", price_min
self
end
|
#by_start_date(start_date) ⇒ Object
36
37
38
39
40
|
# File 'lib/event_finda_ruby/events.rb', line 36
def by_start_date(start_date)
apply_filter "start_date", start_date
self
end
|
#by_ticketed ⇒ Object
42
43
44
45
46
|
# File 'lib/event_finda_ruby/events.rb', line 42
def by_ticketed
apply_filter "ticketed", 1
self
end
|
#by_username(username) ⇒ Object
48
49
50
51
52
|
# File 'lib/event_finda_ruby/events.rb', line 48
def by_username(username)
apply_filter "username", username
self
end
|