Class: Bitly::V3::Day

Inherits:
Object
  • Object
show all
Defined in:
lib/bitly/v3/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(opts) ⇒ Day

Returns a new instance of Day


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

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

Instance Attribute Details

#clicksObject (readonly)

Returns the value of attribute clicks


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

def clicks
  @clicks
end

#day_startObject (readonly)

Returns the value of attribute day_start


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

def day_start
  @day_start
end