Module: Glyr

Defined in:
lib/glyr/query.rb,
lib/glyr.rb,
lib/glyr/c.rb,
lib/glyr/c/types.rb,
lib/glyr/results.rb,
lib/glyr/sources.rb,
lib/glyr/version.rb,
lib/glyr/database.rb,
lib/glyr/providers.rb,
lib/glyr/c/functions.rb

Overview

-- DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004

       DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  1. You just DO WHAT THE FUCK YOU WANT TO. ++

Defined Under Namespace

Modules: C Classes: AlbumList, AlbumReview, ArtistPhoto, Backdrops, CoverArt, Database, GuitarTabs, ImageUrl, Lyrics, Provider, Providers, Query, Relation, Result, Results, SimilarArtist, SimilarSong, Source, Sources, Tag, TagAlbum, TagArtist, TagTitle, TextUrl, Track

Class Method Summary collapse

Class Method Details

.cache_at(path = nil) ⇒ Object



30
31
32
33
34
35
36
37
38
# File 'lib/glyr.rb', line 30

def self.cache_at (path = nil)
  if path
    @database = Database.create(path).write!.read!

    self
  else
    @database
  end
end

.providersObject



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

def self.providers
  @providers ||= Providers.create
end

.query(options = {}) ⇒ Object

helper to create a Query object



22
23
24
# File 'lib/glyr.rb', line 22

def self.query (options = {})
  Query.create(options)
end

.versionObject



14
15
16
# File 'lib/glyr/version.rb', line 14

def self.version
  '1.0.0'
end