lib/kaltura_fu.rb in kaltura_fu-0.1.5 vs lib/kaltura_fu.rb in kaltura_fu-0.2.0
- old
+ new
@@ -1,34 +1,53 @@
+#--
+# Copyright (c) 2010 Velir Studios
+#
+# Permission is hereby granted, free of charge, to any person obtaining
+# a copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, sublicense, and/or sell copies of the Software, and to
+# permit persons to whom the Software is furnished to do so, subject to
+# the following conditions:
+#
+# The above copyright notice and this permission notice shall be
+# included in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+#++
+
##
-# The KalturaFu module provides a singleton implementation for Kaltura API interaction. It stores session and API client information so that they do not need to be reset.
+# The KalturaFu module provides a singleton implementation for Kaltura API interaction.
+# It stores session and API client information so that they do not need to be reset.
+#
# @author Patrick Robertson
#
-# @example Initilize a session:
-# KalturaFu.generate_session_key #=> "OTQyNzA2NzAxNzZmNDQyMTA1YzBiNzA5YWFjNzQ0ODNjODQ5MjZkM3wyMDM4MjI7MjAzODIyOzEyODUzNTA2ODg7MjsxMjg1MjY0Mjg4LjI2NTs7"
-# @example Retrieve a client object:
-# client = KalturaFu.client #=> #<Kaltura::Client:0x1071e39f0 @session_service=#<Kaltura::Service::SessionService:0x1071e3900 @client=#<Kaltura::Client:0x1071e39f0 ...>>, @calls_queue=[], @should_log=false, @is_multirequest=false, @ks="OTQyNzA2NzAxNzZmNDQyMTA1YzBiNzA5YWFjNzQ0ODNjODQ5MjZkM3wyMDM4MjI7MjAzODIyOzEyODUzNTA2ODg7MjsxMjg1MjY0Mjg4LjI2NTs7", @config=#<Kaltura::Configuration:0x1071e39c8 @client_tag="ruby", @format=2, @service_url="http://www.kaltura.com", @partner_id="20322323", @timeout=10>>
-# @example Clear a session:
-# KalturaFu.clear_session_key! #=> nil
##
require 'rubygems'
require 'kaltura'
+require 'active_support/all'
module KalturaFu
#Initilize the configuration and send the ViewHelpers into ActionView::Base when it's a Rails 3 app.
require 'kaltura_fu/railtie' if defined?(Rails) && Rails.version.split(".").first == "3"
- autoload :Video, 'kaltura_fu/video'
- autoload :Category, 'kaltura_fu/category'
- autoload :Report, 'kaltura_fu/report'
autoload :Configuration, 'kaltura_fu/configuration'
autoload :Entry, 'kaltura_fu/entry'
module Entry
+
autoload :Metadata, 'kaltura_fu/entry/metadata'
autoload :ClassMethods, 'kaltura_fu/entry/class_methods'
autoload :InstanceMethods, 'kaltura_fu/entry/instance_methods'
-
+ autoload :Flavor, 'kaltura_fu/entry/flavor'
+
module Metadata
autoload :ClassMethods, 'kaltura_fu/entry/metadata/class_methods'
autoload :ClassAndInstanceMethods, 'kaltura_fu/entry/metadata/class_and_instance_methods'
end
end