Class: Spill::Event

Inherits:
Data
  • Object
show all
Defined in:
lib/spill/event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source:, kind:, repo:, title: nil, ref: nil, timestamp: nil, extra: {}) ⇒ Event

Returns a new instance of Event.



3
4
5
# File 'lib/spill/event.rb', line 3

def initialize(source:, kind:, repo:, title: nil, ref: nil, timestamp: nil, extra: {})
  super
end

Instance Attribute Details

#extraObject (readonly)

Returns the value of attribute extra

Returns:

  • (Object)

    the current value of extra



2
3
4
# File 'lib/spill/event.rb', line 2

def extra
  @extra
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



2
3
4
# File 'lib/spill/event.rb', line 2

def kind
  @kind
end

#refObject (readonly)

Returns the value of attribute ref

Returns:

  • (Object)

    the current value of ref



2
3
4
# File 'lib/spill/event.rb', line 2

def ref
  @ref
end

#repoObject (readonly)

Returns the value of attribute repo

Returns:

  • (Object)

    the current value of repo



2
3
4
# File 'lib/spill/event.rb', line 2

def repo
  @repo
end

#sourceObject (readonly)

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



2
3
4
# File 'lib/spill/event.rb', line 2

def source
  @source
end

#timestampObject (readonly)

Returns the value of attribute timestamp

Returns:

  • (Object)

    the current value of timestamp



2
3
4
# File 'lib/spill/event.rb', line 2

def timestamp
  @timestamp
end

#titleObject (readonly)

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



2
3
4
# File 'lib/spill/event.rb', line 2

def title
  @title
end