Class: KewegoParty::Client

Inherits:
Object
  • Object
show all
Includes:
HTTParty, Cache, App, Auth, Channel, ChannelList, Upload, Video, Connection, Request
Defined in:
lib/kewego_party/client.rb,
lib/kewego_party/client/app.rb,
lib/kewego_party/client/auth.rb,
lib/kewego_party/client/video.rb,
lib/kewego_party/client/upload.rb,
lib/kewego_party/client/channel.rb,
lib/kewego_party/client/channel_list.rb

Defined Under Namespace

Modules: App, Auth, Channel, ChannelList, Upload, Video

Instance Method Summary collapse

Methods included from Video

#video_get_details, #video_get_stats

Methods included from Upload

#upload_get_available_categories, #upload_get_upload_progress

Methods included from Channel

#channel_get_details, #channel_get_player_code, #channel_get_thumbnail, #channel_get_videos

Methods included from ChannelList

#channel_list_get_channels, #channel_list_get_details

Methods included from Auth

#auth_get_auth_token, #auth_get_login_token

Methods included from App

#app_check_token, #app_get_token

Methods included from Request

#delete, #get, #patch, #post, #put

Methods included from Cache

#app_reset_app_token, #app_token, #app_token=

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



31
32
33
34
35
36
# File 'lib/kewego_party/client.rb', line 31

def initialize(options={})
  options = KewegoParty.options.merge(options)
  Configuration::VALID_OPTIONS_KEYS.each do |key|
    send("#{key}=", options[key])
  end
end

Instance Method Details

#caching_store=(store) ⇒ Object



38
39
40
41
# File 'lib/kewego_party/client.rb', line 38

def caching_store=(store)
  @caching_store = store
  APICache.store = store
end