Module: Resource

Included in:
SimpleSpotify::Model::Album, SimpleSpotify::Model::Artist, SimpleSpotify::Model::Image, SimpleSpotify::Model::PlayEvent, SimpleSpotify::Model::Playlist, SimpleSpotify::Model::PlaylistTrack, SimpleSpotify::Model::Track, SimpleSpotify::Model::User
Defined in:
lib/simplespotify/resource/resource.rb,
lib/simplespotify/resource/class_methods.rb,
lib/simplespotify/resource/instance_methods.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/simplespotify/resource/resource.rb', line 6

def self.included(base)
  base.extend(ClassMethods)
  base.instance_variable_set("@_template", {})

  # base.extend(ClassMethods.dup);
  base.send :include, InstanceMethods
end