Class: EventbriteRuby::Events
- Inherits:
-
Object
- Object
- EventbriteRuby::Events
- Defined in:
- lib/eventbrite_ruby/events.rb
Instance Method Summary collapse
- #create(params) ⇒ Object
- #find(id) ⇒ Object
-
#initialize ⇒ Events
constructor
A new instance of Events.
- #search(params) ⇒ Object
- #update_event(params) ⇒ Object
Constructor Details
#initialize ⇒ Events
Returns a new instance of Events.
4 5 6 |
# File 'lib/eventbrite_ruby/events.rb', line 4 def initialize @client = EventbriteRuby::Client.new end |
Instance Method Details
#create(params) ⇒ Object
12 13 14 |
# File 'lib/eventbrite_ruby/events.rb', line 12 def create(params) @client.post("v3/events/", params) end |
#find(id) ⇒ Object
16 17 18 |
# File 'lib/eventbrite_ruby/events.rb', line 16 def find(id) @client.get("v3/events/", {id: id}) end |
#search(params) ⇒ Object
8 9 10 |
# File 'lib/eventbrite_ruby/events.rb', line 8 def search(params) @client.get("v3/events/search/", params) end |
#update_event(params) ⇒ Object
20 21 22 |
# File 'lib/eventbrite_ruby/events.rb', line 20 def update_event(params) @client.post("v3/events/", params) end |