Class: Magti::Config
Overview
Service configuration class.
Access it, using Magti.config
.
Instance Attribute Summary collapse
-
#client ⇒ Object
client.
-
#password ⇒ Object
password.
-
#service ⇒ Object
service.
-
#username ⇒ Object
user name.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
-
#security_options ⇒ Object
Returns security options hash.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
29 30 31 |
# File 'lib/magti/config.rb', line 29 def initialize self.service = 1 end |
Instance Attribute Details
#client ⇒ Object
client
25 26 27 |
# File 'lib/magti/config.rb', line 25 def client @client end |
#password ⇒ Object
password
23 24 25 |
# File 'lib/magti/config.rb', line 23 def password @password end |
#service ⇒ Object
service
27 28 29 |
# File 'lib/magti/config.rb', line 27 def service @service end |
#username ⇒ Object
user name
21 22 23 |
# File 'lib/magti/config.rb', line 21 def username @username end |
Instance Method Details
#security_options ⇒ Object
Returns security options hash.
34 35 36 |
# File 'lib/magti/config.rb', line 34 def { :username => self.username, :password => self.password, :client_id => self.client, :service_id => self.service } end |