Class: Poms::Builderless::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/poms/builderless/broadcast.rb

Overview

A single event of a broadcast.

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ Event

Returns a new instance of Event.



28
29
30
# File 'lib/poms/builderless/broadcast.rb', line 28

def initialize(hash)
  @hash = hash
end

Instance Method Details

#starts_atObject



32
33
34
# File 'lib/poms/builderless/broadcast.rb', line 32

def starts_at
  Timestamp.convert(@hash['start'])
end