Class: Snowfinch::Collector::Click

Inherits:
Object
  • Object
show all
Defined in:
lib/snowfinch/collector/click.rb

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Click

Returns a new instance of Click.



11
12
13
# File 'lib/snowfinch/collector/click.rb', line 11

def initialize(attributes={})
  @attributes = attributes
end

Instance Method Details

#saveObject



15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/snowfinch/collector/click.rb', line 15

def save
  if uri && uuid
    update_site_count
    update_page_count
    update_visit
    update_visitor
    update_sensors
    true
  else
    false
  end
end