Class: Caliper::Events::Event

Inherits:
Object
  • Object
show all
Includes:
Jsonable
Defined in:
lib/caliper/events/event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Jsonable

#eql?, #from_json, included, #to_json

Constructor Details

#initializeEvent

Returns a new instance of Event.



32
33
34
35
36
37
38
39
# File 'lib/caliper/events/event.rb', line 32

def initialize()
  @context = Caliper::Context::Context::CONTEXT
  @type = Caliper::Events::EventType::EVENT
  @actor = nil
  @action = nil
  @object = nil
  @eventTime = nil
end

Instance Attribute Details

#actionObject

Returns the value of attribute action.



30
31
32
# File 'lib/caliper/events/event.rb', line 30

def action
  @action
end

#actorObject

Returns the value of attribute actor.



30
31
32
# File 'lib/caliper/events/event.rb', line 30

def actor
  @actor
end

#contextObject

Returns the value of attribute context.



30
31
32
# File 'lib/caliper/events/event.rb', line 30

def context
  @context
end

#eventTimeObject

Returns the value of attribute eventTime.



30
31
32
# File 'lib/caliper/events/event.rb', line 30

def eventTime
  @eventTime
end

#objectObject

Returns the value of attribute object.



30
31
32
# File 'lib/caliper/events/event.rb', line 30

def object
  @object
end

#typeObject

Returns the value of attribute type.



30
31
32
# File 'lib/caliper/events/event.rb', line 30

def type
  @type
end