Module: Helix

Defined in:
lib/helix.rb,
lib/helix/tag.rb,
lib/helix/user.rb,
lib/helix/base.rb,
lib/helix/media.rb,
lib/helix/video.rb,
lib/helix/album.rb,
lib/helix/track.rb,
lib/helix/image.rb,
lib/helix/config.rb,
lib/helix/restful.rb,
lib/helix/library.rb,
lib/helix/playlist.rb,
lib/helix/document.rb,
lib/helix/paginates.rb,
lib/helix/uploadable.rb,
lib/helix/durationed.rb,
lib/helix/exceptions.rb,
lib/helix/statistics.rb,
lib/helix/builds_urls.rb,
lib/helix/downloadable.rb,
lib/helix/video_playlist.rb,
lib/helix/has_signatures.rb,
lib/helix/audio_playlist.rb

Defined Under Namespace

Modules: BuildsUrls, Downloadable, Durationed, HasSignatures, Paginates, RESTful, Statistics, Uploadable Classes: Album, AudioPlaylist, Base, Config, Document, Image, Library, Media, NetworkError, NoConfigurationLoaded, Playlist, Tag, Track, User, Video, VideoPlaylist

Class Method Summary collapse

Class Method Details

.scope_to_company(co_id) ⇒ Object

Parameters:

  • The (String)

    name of the Company to scope to.


25
26
27
28
# File 'lib/helix.rb', line 25

def self.scope_to_company(co_id)
  Helix::Config.instance.credentials.delete(:library)
  Helix::Config.instance.credentials[:company] = co_id
end

.scope_to_library(lib_id) ⇒ Object

Parameters:

  • The (String)

    name of the Library to scope to.


31
32
33
# File 'lib/helix.rb', line 31

def self.scope_to_library(lib_id)
  Helix::Config.instance.credentials[:library] = lib_id
end

.set_license_key(license_key) ⇒ Object

Parameters:

  • The (String)

    license key to use.


36
37
38
# File 'lib/helix.rb', line 36

def self.set_license_key(license_key)
  Helix::Config.instance.credentials[:license_key] = license_key
end