Sha256: fe9457ffb73dd71e3476d02badf9439ea15288617cd0305862dfc10b2e9bb819

Contents?: true

Size: 305 Bytes

Versions: 20

Compression:

Stored size: 305 Bytes

Contents

module Bitly
  module V3
    # Day objects are created by the clicks_by_day method of a url
    class Day
      attr_reader :clicks, :day_start
    
      def initialize(opts)
        @clicks = opts['clicks']
        @day_start = Time.at(opts['day_start']) if opts['day_start']
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
bitly-1.1.2 lib/bitly/v3/day.rb
bitly-1.1.1 lib/bitly/v3/day.rb
bitly-1.1.0 lib/bitly/v3/day.rb
bitly-1.0.2 lib/bitly/v3/day.rb
bitly-1.0.1 lib/bitly/v3/day.rb
bitly-1.0.0 lib/bitly/v3/day.rb
bitly-0.10.4 lib/bitly/v3/day.rb
bitly-0.10.3 lib/bitly/v3/day.rb
bitly-0.10.2 lib/bitly/v3/day.rb
bitly-0.10.1 lib/bitly/v3/day.rb
bitly-0.10.0 lib/bitly/v3/day.rb
bitly-0.9.0 lib/bitly/v3/day.rb
bitly-0.8.1 lib/bitly/v3/day.rb
bitly-0.8.0 lib/bitly/v3/day.rb
bitly-0.7.0 lib/bitly/v3/day.rb
bitly-0.6.2 lib/bitly/v3/day.rb
bitly-0.6.1 lib/bitly/v3/day.rb
bitly-0.6.0 lib/bitly/v3/day.rb
bitly-0.5.5 lib/bitly/v3/day.rb
bitly-0.5.4 lib/bitly/v3/day.rb