Class: Bremen::Base

Inherits:
Object
  • Object
show all
Extended by:
Request
Includes:
Track
Defined in:
lib/bremen/base.rb

Direct Known Subclasses

Mixcloud, Nicovideo, Soundcloud, Youtube

Class Attribute Summary collapse

Attributes included from Track

#author, #created_at, #length, #thumbnail_url, #title, #uid, #updated_at, #url

Class Method Summary collapse

Methods included from Request

build_query, get

Methods included from Track

#initialize

Class Attribute Details

.default_optionsObject

Returns the value of attribute default_options.



10
11
12
# File 'lib/bremen/base.rb', line 10

def default_options
  @default_options
end

Class Method Details

.find(uid_or_url) ⇒ Object



12
13
14
# File 'lib/bremen/base.rb', line 12

def find uid_or_url
  convert_singly(get(find_url(uid_or_url)))
end

.find_url(uid_or_url) ⇒ Object

abstract methods



21
# File 'lib/bremen/base.rb', line 21

def find_url uid_or_url; end

.search(options = {}) ⇒ Object



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

def search options = {}
  convert_multiply(get(search_url(options)))
end

.search_url(options = {}) ⇒ Object



22
# File 'lib/bremen/base.rb', line 22

def search_url options = {}; end