Class: BitlyOAuth::Day
- Inherits:
-
Object
- Object
- BitlyOAuth::Day
- 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
-
#clicks ⇒ Object
readonly
Returns the value of attribute clicks.
-
#day_start ⇒ Object
readonly
Returns the value of attribute day_start.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Day
constructor
A new instance of Day.
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( = {}) @clicks = ['clicks'] @day_start = Time.at(['day_start']) if ['day_start'] end |
Instance Attribute Details
#clicks ⇒ Object (readonly)
Returns the value of attribute clicks.
5 6 7 |
# File 'lib/bitly_oauth/day.rb', line 5 def clicks @clicks end |
#day_start ⇒ Object (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 |