Class: Brainzz::ViewCountParams
- Inherits:
-
AnalyticsParams
- Object
- BaseParams
- AnalyticsParams
- Brainzz::ViewCountParams
- Defined in:
- lib/brainzz/params/view_count_params.rb
Instance Attribute Summary collapse
-
#video_id ⇒ Object
readonly
Returns the value of attribute video_id.
Attributes inherited from AnalyticsParams
#channel_id, #end_date, #refresh_token, #start_date
Instance Method Summary collapse
-
#initialize(params) ⇒ ViewCountParams
constructor
A new instance of ViewCountParams.
- #valid? ⇒ Boolean
Constructor Details
#initialize(params) ⇒ ViewCountParams
Returns a new instance of ViewCountParams.
5 6 7 8 |
# File 'lib/brainzz/params/view_count_params.rb', line 5 def initialize(params) super @video_id = normalize(params[:video_id]) end |
Instance Attribute Details
#video_id ⇒ Object (readonly)
Returns the value of attribute video_id.
3 4 5 |
# File 'lib/brainzz/params/view_count_params.rb', line 3 def video_id @video_id end |
Instance Method Details
#valid? ⇒ Boolean
10 11 12 |
# File 'lib/brainzz/params/view_count_params.rb', line 10 def valid? !!(super && video_id) end |