Class: Stagebloc

Inherits:
Object
  • Object
show all
Defined in:
lib/stagebloc.rb

Constant Summary collapse

BASE_URL =
"https://api.stagebloc.com/v1"

Instance Method Summary collapse

Constructor Details

#initialize(client_id) ⇒ Stagebloc

Returns a new instance of Stagebloc.



5
6
7
# File 'lib/stagebloc.rb', line 5

def initialize client_id
  @client ||= "client_id=#{client_id}"
end

Instance Method Details

#account(account_id) ⇒ Object



9
10
11
# File 'lib/stagebloc.rb', line 9

def  
  get "#{BASE_URL}/account/#{}?#{@client}"
end

#children_for_account(account_id) ⇒ Object



13
14
15
# File 'lib/stagebloc.rb', line 13

def  
  get("#{BASE_URL}/account/#{}/children?#{@client}")['child_accounts']
end

#get_audio(account_id, audio_id) ⇒ Object



17
18
19
# File 'lib/stagebloc.rb', line 17

def get_audio , audio_id
  get "#{BASE_URL}/account/#{}/audio/#{audio_id}?#{@client}"
end