Class: Magti::Config

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/magti/config.rb

Overview

Service configuration class.

Access it, using Magti.config.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clientObject

client



25
26
27
# File 'lib/magti/config.rb', line 25

def client
  @client
end

#passwordObject

password



23
24
25
# File 'lib/magti/config.rb', line 23

def password
  @password
end

#serviceObject

service



27
28
29
# File 'lib/magti/config.rb', line 27

def service
  @service
end

#usernameObject

user name



21
22
23
# File 'lib/magti/config.rb', line 21

def username
  @username
end

Instance Method Details

#security_optionsObject

Returns security options hash.



30
31
32
# File 'lib/magti/config.rb', line 30

def security_options
  { :username => self.username, :password => self.password, :client_id => self.client, :service_id => self.service }
end