Module: Tito::Eventable
- Included in:
- DiscountCode, EventSettings, InterestedUser, Question, Registration, Release, Ticket, WebhookEndpoint, WebhookEndpointIncludedTrigger
- Defined in:
- lib/tito/eventable.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/tito/eventable.rb', line 4 def self.included(base) base.extend ClassMethods base.class_eval do attr_accessor :event_slug attr_accessor :account_slug end end |
Instance Method Details
#post_path ⇒ Object
16 17 18 |
# File 'lib/tito/eventable.rb', line 16 def post_path [path_prefix, self.class.resource_path].join("/") end |
#put_path ⇒ Object
12 13 14 |
# File 'lib/tito/eventable.rb', line 12 def put_path [path_prefix, self.class.resource_path, id].join("/") end |