Class: BitlyOAuth::Day

Inherits:
Object
  • Object
show all
Defined in:
lib/bitly_oauth/day.rb

Overview

Day objects are created by the clicks_by_day method of a url

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Day

Returns a new instance of Day.



7
8
9
10
# File 'lib/bitly_oauth/day.rb', line 7

def initialize(options = {})
  @clicks    = options['clicks']
  @day_start = Time.at(options['day_start']) if options['day_start']
end

Instance Attribute Details

#clicksObject (readonly)

Returns the value of attribute clicks.



5
6
7
# File 'lib/bitly_oauth/day.rb', line 5

def clicks
  @clicks
end

#day_startObject (readonly)

Returns the value of attribute day_start.



5
6
7
# File 'lib/bitly_oauth/day.rb', line 5

def day_start
  @day_start
end