Class: Yt::Rating
Instance Attribute Summary collapse
-
#rating ⇒ Object
readonly
Returns the value of attribute rating.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Rating
constructor
A new instance of Rating.
- #update(new_rating) ⇒ Object
Methods included from Associations
Methods included from Actions::Update
Constructor Details
#initialize(options = {}) ⇒ Rating
Returns a new instance of Rating.
7 8 9 10 11 |
# File 'lib/yt/models/rating.rb', line 7 def initialize( = {}) = [:rating].to_sym if [:rating] @video_id = [:video_id] @auth = [:auth] end |
Instance Attribute Details
#rating ⇒ Object (readonly)
Returns the value of attribute rating.
5 6 7 |
# File 'lib/yt/models/rating.rb', line 5 def end |
Instance Method Details
#update(new_rating) ⇒ Object
13 14 15 |
# File 'lib/yt/models/rating.rb', line 13 def update() do_update(params: {rating: }) { = } end |