Class: SourceMonitor::Items::ItemCreator::Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#itemObject

Returns the value of attribute item

Returns:

  • (Object)

    the current value of item



17
18
19
# File 'lib/source_monitor/items/item_creator.rb', line 17

def item
  @item
end

#matched_byObject

Returns the value of attribute matched_by

Returns:

  • (Object)

    the current value of matched_by



17
18
19
# File 'lib/source_monitor/items/item_creator.rb', line 17

def matched_by
  @matched_by
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



17
18
19
# File 'lib/source_monitor/items/item_creator.rb', line 17

def status
  @status
end

Instance Method Details

#created?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/source_monitor/items/item_creator.rb', line 18

def created?
  status == :created
end

#unchanged?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/source_monitor/items/item_creator.rb', line 26

def unchanged?
  status == :unchanged
end

#updated?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/source_monitor/items/item_creator.rb', line 22

def updated?
  status == :updated
end