Class: Kaltura::Configuration
- Inherits:
-
Object
- Object
- Kaltura::Configuration
- Includes:
- Singleton
- Defined in:
- lib/kaltura/configuration.rb
Constant Summary collapse
- @@defaults =
{ :partner_id => 'PARTNER_ID', :administrator_secret => 'ADMINISTRATOR_SECRET', :service_url => 'http://kaltura.com' }
Instance Attribute Summary collapse
-
#administrator_secret ⇒ Object
Returns the value of attribute administrator_secret.
-
#partner_id ⇒ Object
Returns the value of attribute partner_id.
-
#service_url ⇒ Object
Returns the value of attribute service_url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
15 16 17 |
# File 'lib/kaltura/configuration.rb', line 15 def initialize @@defaults.each_pair{|k,v| self.send("#{k}=",v)} end |
Instance Attribute Details
#administrator_secret ⇒ Object
Returns the value of attribute administrator_secret.
13 14 15 |
# File 'lib/kaltura/configuration.rb', line 13 def administrator_secret @administrator_secret end |
#partner_id ⇒ Object
Returns the value of attribute partner_id.
13 14 15 |
# File 'lib/kaltura/configuration.rb', line 13 def partner_id @partner_id end |
#service_url ⇒ Object
Returns the value of attribute service_url.
13 14 15 |
# File 'lib/kaltura/configuration.rb', line 13 def service_url @service_url end |