Sha256: 688037f1118cf42b0dc6058d556b107ef2e3ea196d6f7fbc897f1e44c409c9f6
Contents?: true
Size: 394 Bytes
Versions: 1
Compression:
Stored size: 394 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).to_a end def title name end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spektrix-0.0.2.1 | lib/models/events/event.rb |