Module: SwiftFile
- Defined in:
- lib/swift_file.rb,
lib/swift_file/version.rb,
lib/swift_file/swift_upload.rb
Defined Under Namespace
Classes: SwiftUpload
Constant Summary collapse
- VERSION =
"0.0.1"
Class Attribute Summary collapse
-
.swift_file ⇒ Object
Returns the value of attribute swift_file.
-
.swift_file_group ⇒ Object
Returns the value of attribute swift_file_group.
-
.swift_file_password ⇒ Object
Returns the value of attribute swift_file_password.
Class Method Summary collapse
Class Attribute Details
.swift_file ⇒ Object
Returns the value of attribute swift_file.
7 8 9 |
# File 'lib/swift_file.rb', line 7 def swift_file @swift_file end |
.swift_file_group ⇒ Object
Returns the value of attribute swift_file_group.
7 8 9 |
# File 'lib/swift_file.rb', line 7 def swift_file_group @swift_file_group end |
.swift_file_password ⇒ Object
Returns the value of attribute swift_file_password.
7 8 9 |
# File 'lib/swift_file.rb', line 7 def swift_file_password @swift_file_password end |
Class Method Details
.upload ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/swift_file.rb', line 9 def self.upload sf = SwiftFile::SwiftUpload.new({ :file => @swift_file, :group => @swift_file_group || nil, :password => @swift_file_password || nil }) sf.upload sf.url end |