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
-
#security_options ⇒ Object
Returns security options hash.
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.
30 31 32 |
# File 'lib/magti/config.rb', line 30 def { :username => self.username, :password => self.password, :client_id => self.client, :service_id => self.service } end |