Class: Myer::Config::ServerConfig
- Inherits:
-
Object
- Object
- Myer::Config::ServerConfig
- Defined in:
- lib/myer/config.rb
Instance Attribute Summary collapse
-
#admin_id ⇒ Object
Returns the value of attribute admin_id.
-
#admin_password ⇒ Object
Returns the value of attribute admin_password.
-
#default_bucket_id ⇒ Object
Returns the value of attribute default_bucket_id.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
-
#user_password ⇒ Object
Returns the value of attribute user_password.
Instance Method Summary collapse
-
#initialize(yaml) ⇒ ServerConfig
constructor
A new instance of ServerConfig.
Constructor Details
#initialize(yaml) ⇒ ServerConfig
Returns a new instance of ServerConfig.
25 26 27 28 29 30 31 |
# File 'lib/myer/config.rb', line 25 def initialize(yaml) @admin_id = yaml["admin_id"] @admin_password = yaml["admin_password"] @user_id = yaml["user_id"] @user_password = yaml["user_password"] @default_bucket_id = yaml["default_bucket_id"] end |
Instance Attribute Details
#admin_id ⇒ Object
Returns the value of attribute admin_id.
21 22 23 |
# File 'lib/myer/config.rb', line 21 def admin_id @admin_id end |
#admin_password ⇒ Object
Returns the value of attribute admin_password.
21 22 23 |
# File 'lib/myer/config.rb', line 21 def admin_password @admin_password end |
#default_bucket_id ⇒ Object
Returns the value of attribute default_bucket_id.
23 24 25 |
# File 'lib/myer/config.rb', line 23 def default_bucket_id @default_bucket_id end |
#user_id ⇒ Object
Returns the value of attribute user_id.
22 23 24 |
# File 'lib/myer/config.rb', line 22 def user_id @user_id end |
#user_password ⇒ Object
Returns the value of attribute user_password.
22 23 24 |
# File 'lib/myer/config.rb', line 22 def user_password @user_password end |