Class: SirvRestApi::SpinViewStats

Inherits:
Object
  • Object
show all
Defined in:
lib/sirv_rest_api/models.rb

Overview

Spin view statistics

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ SpinViewStats

Returns a new instance of SpinViewStats.



298
299
300
301
302
303
304
305
306
# File 'lib/sirv_rest_api/models.rb', line 298

def initialize(data = {})
  @date = data["date"]
  @views = data["views"]
  @spins = data["spins"]
  @zooms = data["zooms"]
  @fullscreens = data["fullscreens"]
  @user_agent = data["userAgent"]
  @country = data["country"]
end

Instance Attribute Details

#countryObject

Returns the value of attribute country.



296
297
298
# File 'lib/sirv_rest_api/models.rb', line 296

def country
  @country
end

#dateObject

Returns the value of attribute date.



296
297
298
# File 'lib/sirv_rest_api/models.rb', line 296

def date
  @date
end

#fullscreensObject

Returns the value of attribute fullscreens.



296
297
298
# File 'lib/sirv_rest_api/models.rb', line 296

def fullscreens
  @fullscreens
end

#spinsObject

Returns the value of attribute spins.



296
297
298
# File 'lib/sirv_rest_api/models.rb', line 296

def spins
  @spins
end

#user_agentObject

Returns the value of attribute user_agent.



296
297
298
# File 'lib/sirv_rest_api/models.rb', line 296

def user_agent
  @user_agent
end

#viewsObject

Returns the value of attribute views.



296
297
298
# File 'lib/sirv_rest_api/models.rb', line 296

def views
  @views
end

#zoomsObject

Returns the value of attribute zooms.



296
297
298
# File 'lib/sirv_rest_api/models.rb', line 296

def zooms
  @zooms
end