Class: YouTubeIt::Record
- Inherits:
-
Object
- Object
- YouTubeIt::Record
- Defined in:
- lib/youtube_it/record.rb
Overview
:nodoc:
Direct Known Subclasses
Model::Activity, Model::Author, Model::Category, Model::Comment, Model::Contact, Model::Content, Model::Message, Model::Playlist, Model::Rating, Model::Subscription, Model::Thumbnail, Model::User, Model::Video, YouTubeIt::Response::VideoSearch
Instance Method Summary collapse
-
#initialize(params) ⇒ Record
constructor
A new instance of Record.
Constructor Details
#initialize(params) ⇒ Record
Returns a new instance of Record.
3 4 5 6 7 8 9 10 |
# File 'lib/youtube_it/record.rb', line 3 def initialize (params) return if params.nil? params.each do |key, value| name = key.to_s instance_variable_set("@#{name}", value) if respond_to?(name) end end |