Class: CEPH::Radosgw
- Inherits:
-
Object
- Object
- CEPH::Radosgw
- Defined in:
- lib/ceph/radosgw.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#ipaddress ⇒ Object
readonly
Returns the value of attribute ipaddress.
-
#uid ⇒ Object
readonly
Returns the value of attribute uid.
-
#user_password ⇒ Object
readonly
Returns the value of attribute user_password.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(options) ⇒ Radosgw
constructor
A new instance of Radosgw.
Constructor Details
#initialize(options) ⇒ Radosgw
Returns a new instance of Radosgw.
8 9 10 11 12 13 14 15 16 |
# File 'lib/ceph/radosgw.rb', line 8 def initialize() raise ArgumentError, "Missing :username." if ![:username] raise ArgumentError, "Missing :ipaddress." if ![:ipaddress] raise ArgumentError, "Missing :user_password." if ![:user_password] @username = .fetch(:username) @ipaddress = .fetch(:ipaddress) @user_password = .fetch(:user_password) end |
Instance Attribute Details
#ipaddress ⇒ Object (readonly)
Returns the value of attribute ipaddress.
7 8 9 |
# File 'lib/ceph/radosgw.rb', line 7 def ipaddress @ipaddress end |
#uid ⇒ Object (readonly)
Returns the value of attribute uid.
7 8 9 |
# File 'lib/ceph/radosgw.rb', line 7 def uid @uid end |
#user_password ⇒ Object (readonly)
Returns the value of attribute user_password.
7 8 9 |
# File 'lib/ceph/radosgw.rb', line 7 def user_password @user_password end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
7 8 9 |
# File 'lib/ceph/radosgw.rb', line 7 def username @username end |