class EventbriteSDK::Event
Constants
- ERROR_ALREADY_CANCELED
- ERROR_ALREADY_PUBLISHED_OR_DELETED
- ERROR_CANNOT_UNPUBLISH
- STATUS_CANCELED
- STATUS_COMPLETED
- STATUS_DELETED
- STATUS_ENDED
- STATUS_LIVE
- STATUS_STARTED
Public Instance Methods
list!()
click to toggle source
# File lib/eventbrite_sdk/event.rb, line 60 def list! unless listed assign_attributes('listed' => true) save end end
over?()
click to toggle source
# File lib/eventbrite_sdk/event.rb, line 67 def over? [ self.class::STATUS_CANCELED, self.class::STATUS_COMPLETED, self.class::STATUS_DELETED, self.class::STATUS_ENDED ].include?(status) end
unlist!()
click to toggle source
# File lib/eventbrite_sdk/event.rb, line 76 def unlist! if listed assign_attributes('listed' => false) save end end