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.3"
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.
6 7 8 |
# File 'lib/swift_file.rb', line 6 def swift_file @swift_file end |
.swift_file_group ⇒ Object
Returns the value of attribute swift_file_group.
6 7 8 |
# File 'lib/swift_file.rb', line 6 def swift_file_group @swift_file_group end |
.swift_file_password ⇒ Object
Returns the value of attribute swift_file_password.
6 7 8 |
# File 'lib/swift_file.rb', line 6 def swift_file_password @swift_file_password end |
Class Method Details
.upload ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/swift_file.rb', line 8 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 |