Class: SirvRestApi::SpinViewStats
- Inherits:
-
Object
- Object
- SirvRestApi::SpinViewStats
- Defined in:
- lib/sirv_rest_api/models.rb
Overview
Spin view statistics
Instance Attribute Summary collapse
-
#country ⇒ Object
Returns the value of attribute country.
-
#date ⇒ Object
Returns the value of attribute date.
-
#fullscreens ⇒ Object
Returns the value of attribute fullscreens.
-
#spins ⇒ Object
Returns the value of attribute spins.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
-
#views ⇒ Object
Returns the value of attribute views.
-
#zooms ⇒ Object
Returns the value of attribute zooms.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ SpinViewStats
constructor
A new instance of SpinViewStats.
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
#country ⇒ Object
Returns the value of attribute country.
296 297 298 |
# File 'lib/sirv_rest_api/models.rb', line 296 def country @country end |
#date ⇒ Object
Returns the value of attribute date.
296 297 298 |
# File 'lib/sirv_rest_api/models.rb', line 296 def date @date end |
#fullscreens ⇒ Object
Returns the value of attribute fullscreens.
296 297 298 |
# File 'lib/sirv_rest_api/models.rb', line 296 def fullscreens @fullscreens end |
#spins ⇒ Object
Returns the value of attribute spins.
296 297 298 |
# File 'lib/sirv_rest_api/models.rb', line 296 def spins @spins end |
#user_agent ⇒ Object
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 |
#views ⇒ Object
Returns the value of attribute views.
296 297 298 |
# File 'lib/sirv_rest_api/models.rb', line 296 def views @views end |
#zooms ⇒ Object
Returns the value of attribute zooms.
296 297 298 |
# File 'lib/sirv_rest_api/models.rb', line 296 def zooms @zooms end |