Module: RedHaze

Defined in:
lib/red_haze.rb,
lib/red_haze/me.rb,
lib/red_haze/user.rb,
lib/red_haze/group.rb,
lib/red_haze/track.rb,
lib/red_haze/client.rb,
lib/red_haze/comment.rb,
lib/red_haze/helpers.rb,
lib/red_haze/request.rb,
lib/red_haze/version.rb,
lib/red_haze/activity.rb,
lib/red_haze/playlist.rb,
lib/red_haze/collection.rb,
lib/red_haze/helpers/resource.rb

Defined Under Namespace

Modules: Helpers Classes: Activity, Client, Collection, Comment, Group, Me, Playlist, Request, Track, User

Constant Summary collapse

VERSION =
"0.0.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.clientObject

Returns the value of attribute client.



16
17
18
# File 'lib/red_haze.rb', line 16

def client
  @client
end

Class Method Details

.configure(options = {}) ⇒ Object



18
19
20
21
22
# File 'lib/red_haze.rb', line 18

def configure(options = {})
  @client = Client.new(options)
  Request.setup(@client.client_id, @client.access_token)
  self
end

.configure_from_file(path) ⇒ Object



24
25
26
# File 'lib/red_haze.rb', line 24

def configure_from_file(path)
  configure YAML.load_file(path)
end