Class: S3::Client::API::Storage::Import::ImportParameter
- Inherits:
-
Object
- Object
- S3::Client::API::Storage::Import::ImportParameter
- Includes:
- Singleton
- Defined in:
- lib/s3/client/api/storage.rb
Instance Attribute Summary collapse
-
#db_name ⇒ Object
Returns the value of attribute db_name.
-
#index ⇒ Object
Returns the value of attribute index.
-
#label ⇒ Object
Returns the value of attribute label.
-
#tbl_name ⇒ Object
Returns the value of attribute tbl_name.
Instance Method Summary collapse
- #file_label(suffix) ⇒ Object
-
#initialize ⇒ ImportParameter
constructor
A new instance of ImportParameter.
- #object_label(suffix) ⇒ Object
- #storage_prefix ⇒ Object
- #url(suffix) ⇒ Object
Constructor Details
#initialize ⇒ ImportParameter
Returns a new instance of ImportParameter.
248 249 250 |
# File 'lib/s3/client/api/storage.rb', line 248 def initialize @index = 1 end |
Instance Attribute Details
#db_name ⇒ Object
Returns the value of attribute db_name.
246 247 248 |
# File 'lib/s3/client/api/storage.rb', line 246 def db_name @db_name end |
#index ⇒ Object
Returns the value of attribute index.
246 247 248 |
# File 'lib/s3/client/api/storage.rb', line 246 def index @index end |
#label ⇒ Object
Returns the value of attribute label.
246 247 248 |
# File 'lib/s3/client/api/storage.rb', line 246 def label @label end |
#tbl_name ⇒ Object
Returns the value of attribute tbl_name.
246 247 248 |
# File 'lib/s3/client/api/storage.rb', line 246 def tbl_name @tbl_name end |
Instance Method Details
#file_label(suffix) ⇒ Object
260 261 262 |
# File 'lib/s3/client/api/storage.rb', line 260 def file_label(suffix) "#{@label}_#{suffix}" end |
#object_label(suffix) ⇒ Object
256 257 258 |
# File 'lib/s3/client/api/storage.rb', line 256 def object_label(suffix) "/#{@db_name}/#{@tbl_name}/#{@label}_#{suffix}.gz" end |
#storage_prefix ⇒ Object
264 265 266 |
# File 'lib/s3/client/api/storage.rb', line 264 def storage_prefix "#{@tbl_name}/#{@label}" end |
#url(suffix) ⇒ Object
252 253 254 |
# File 'lib/s3/client/api/storage.rb', line 252 def url(suffix) "/#{@tbl_name}/#{@label}_#{suffix}.gz" end |