Class: S3::Client::API::Storage::Import::ImportParameter

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/s3/client/api/storage.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeImportParameter

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_nameObject

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

#indexObject

Returns the value of attribute index.



246
247
248
# File 'lib/s3/client/api/storage.rb', line 246

def index
  @index
end

#labelObject

Returns the value of attribute label.



246
247
248
# File 'lib/s3/client/api/storage.rb', line 246

def label
  @label
end

#tbl_nameObject

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_prefixObject



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