Sha256: 337180ad29776a7bb60d1b0b3ccb7dcbfee41e9b09d738d37fd1ce6ed1edfe2e
Contents?: true
Size: 405 Bytes
Versions: 3
Compression:
Stored size: 405 Bytes
Contents
module Spektrix module Events # An event. This hits the events endpoint on Spektrix and returns a collection. class Event include Spektrix::Base collection_path "events" after_find -> (r) { r.duration = r.duration.to_i.minutes } def instances Instance.where(event_id: self.id, all: true).to_a end def title name end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spektrix-0.0.2.5 | lib/models/events/event.rb |
spektrix-0.0.2.4 | lib/models/events/event.rb |
spektrix-0.0.2.3 | lib/models/events/event.rb |