Class: Kaltura::Configuration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_secretObject

Returns the value of attribute administrator_secret.



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

def administrator_secret
  @administrator_secret
end

#partner_idObject

Returns the value of attribute partner_id.



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

def partner_id
  @partner_id
end

#service_urlObject

Returns the value of attribute service_url.



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

def service_url
  @service_url
end