Class: CEPH::Radosgw

Inherits:
Object
  • Object
show all
Defined in:
lib/ceph/radosgw.rb

Direct Known Subclasses

User

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Radosgw

Returns a new instance of Radosgw.

Raises:

  • (ArgumentError)


8
9
10
11
12
13
14
15
16
# File 'lib/ceph/radosgw.rb', line 8

def initialize(options)
  raise ArgumentError, "Missing :username." if !options[:username]
  raise ArgumentError, "Missing :ipaddress." if !options[:ipaddress]
  raise ArgumentError, "Missing :user_password." if !options[:user_password]

  @username = options.fetch(:username)
  @ipaddress = options.fetch(:ipaddress)
  @user_password = options.fetch(:user_password)
end

Instance Attribute Details

#ipaddressObject (readonly)

Returns the value of attribute ipaddress.



7
8
9
# File 'lib/ceph/radosgw.rb', line 7

def ipaddress
  @ipaddress
end

#uidObject (readonly)

Returns the value of attribute uid.



7
8
9
# File 'lib/ceph/radosgw.rb', line 7

def uid
  @uid
end

#user_passwordObject (readonly)

Returns the value of attribute user_password.



7
8
9
# File 'lib/ceph/radosgw.rb', line 7

def user_password
  @user_password
end

#usernameObject (readonly)

Returns the value of attribute username.



7
8
9
# File 'lib/ceph/radosgw.rb', line 7

def username
  @username
end