Class: SourceMonitor::Dashboard::RecentActivity::Event

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



6
7
8
# File 'lib/source_monitor/dashboard/recent_activity.rb', line 6

def id
  @id
end

#item_titleObject

Returns the value of attribute item_title

Returns:

  • (Object)

    the current value of item_title



6
7
8
# File 'lib/source_monitor/dashboard/recent_activity.rb', line 6

def item_title
  @item_title
end

#item_urlObject

Returns the value of attribute item_url

Returns:

  • (Object)

    the current value of item_url



6
7
8
# File 'lib/source_monitor/dashboard/recent_activity.rb', line 6

def item_url
  @item_url
end

#items_createdObject

Returns the value of attribute items_created

Returns:

  • (Object)

    the current value of items_created



6
7
8
# File 'lib/source_monitor/dashboard/recent_activity.rb', line 6

def items_created
  @items_created
end

#items_updatedObject

Returns the value of attribute items_updated

Returns:

  • (Object)

    the current value of items_updated



6
7
8
# File 'lib/source_monitor/dashboard/recent_activity.rb', line 6

def items_updated
  @items_updated
end

#occurred_atObject

Returns the value of attribute occurred_at

Returns:

  • (Object)

    the current value of occurred_at



6
7
8
# File 'lib/source_monitor/dashboard/recent_activity.rb', line 6

def occurred_at
  @occurred_at
end

#scraper_adapterObject

Returns the value of attribute scraper_adapter

Returns:

  • (Object)

    the current value of scraper_adapter



6
7
8
# File 'lib/source_monitor/dashboard/recent_activity.rb', line 6

def scraper_adapter
  @scraper_adapter
end

#source_feed_urlObject

Returns the value of attribute source_feed_url

Returns:

  • (Object)

    the current value of source_feed_url



6
7
8
# File 'lib/source_monitor/dashboard/recent_activity.rb', line 6

def source_feed_url
  @source_feed_url
end

#source_idObject

Returns the value of attribute source_id

Returns:

  • (Object)

    the current value of source_id



6
7
8
# File 'lib/source_monitor/dashboard/recent_activity.rb', line 6

def source_id
  @source_id
end

#source_nameObject

Returns the value of attribute source_name

Returns:

  • (Object)

    the current value of source_name



6
7
8
# File 'lib/source_monitor/dashboard/recent_activity.rb', line 6

def source_name
  @source_name
end

#successObject

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



6
7
8
# File 'lib/source_monitor/dashboard/recent_activity.rb', line 6

def success
  @success
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



6
7
8
# File 'lib/source_monitor/dashboard/recent_activity.rb', line 6

def type
  @type
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/source_monitor/dashboard/recent_activity.rb', line 25

def success?
  !!self[:success]
end