Class: SourceMonitor::Events::ItemCreatedEvent

Inherits:
Struct
  • Object
show all
Defined in:
lib/source_monitor/events.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#entryObject

Returns the value of attribute entry

Returns:

  • (Object)

    the current value of entry



7
8
9
# File 'lib/source_monitor/events.rb', line 7

def entry
  @entry
end

#itemObject

Returns the value of attribute item

Returns:

  • (Object)

    the current value of item



7
8
9
# File 'lib/source_monitor/events.rb', line 7

def item
  @item
end

#occurred_atObject

Returns the value of attribute occurred_at

Returns:

  • (Object)

    the current value of occurred_at



7
8
9
# File 'lib/source_monitor/events.rb', line 7

def occurred_at
  @occurred_at
end

#resultObject

Returns the value of attribute result

Returns:

  • (Object)

    the current value of result



7
8
9
# File 'lib/source_monitor/events.rb', line 7

def result
  @result
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



7
8
9
# File 'lib/source_monitor/events.rb', line 7

def source
  @source
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



7
8
9
# File 'lib/source_monitor/events.rb', line 7

def status
  @status
end

Instance Method Details

#created?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/source_monitor/events.rb', line 8

def created?
  status.to_s == "created"
end