class Biostars::API::Traffic

Number of post views over the last 60 min filtered by unique IPs. @author Arian Amador <arian@arianamador.com>

Attributes

date[R]

@return [String] the current date, ISO 8601 format.

post_views_last_60_min[R]

@return [Fixnum] number of post views over the last 60 min filtered by unique IPs.

timestamp[R]

@return [Fixnum] current date unix epoch time format.

Public Class Methods

new(attributes) click to toggle source

Instantiate the Biostars::API::Traffic.

# File lib/biostars/api/traffic.rb, line 18
        def initialize(attributes)
attributes.each do |k,v| 
  instance_variable_set "@#{k}", v unless v.nil?
end
        end