Class: Qiniu2Upyun::Config::Upyun

Inherits:
Object
  • Object
show all
Defined in:
lib/qiniu2upyun/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Upyun

Returns a new instance of Upyun.



21
22
23
24
25
# File 'lib/qiniu2upyun/config.rb', line 21

def initialize(options)
  @username = options['username']
  @password = options['password']
  @bucket   = options['bucket']
end

Instance Attribute Details

#bucketObject (readonly)

Returns the value of attribute bucket.



19
20
21
# File 'lib/qiniu2upyun/config.rb', line 19

def bucket
  @bucket
end

#passwordObject (readonly)

Returns the value of attribute password.



19
20
21
# File 'lib/qiniu2upyun/config.rb', line 19

def password
  @password
end

#usernameObject (readonly)

Returns the value of attribute username.



19
20
21
# File 'lib/qiniu2upyun/config.rb', line 19

def username
  @username
end