Class: Dag::Client::API::Storage::Import::ImportParameter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeImportParameter

Returns a new instance of ImportParameter.



239
240
241
# File 'lib/dag/client/api/storage.rb', line 239

def initialize
  @index = 1
end

Instance Attribute Details

#db_nameObject

Returns the value of attribute db_name.



237
238
239
# File 'lib/dag/client/api/storage.rb', line 237

def db_name
  @db_name
end

#indexObject

Returns the value of attribute index.



237
238
239
# File 'lib/dag/client/api/storage.rb', line 237

def index
  @index
end

#labelObject

Returns the value of attribute label.



237
238
239
# File 'lib/dag/client/api/storage.rb', line 237

def label
  @label
end

#tbl_nameObject

Returns the value of attribute tbl_name.



237
238
239
# File 'lib/dag/client/api/storage.rb', line 237

def tbl_name
  @tbl_name
end

Instance Method Details

#file_label(suffix) ⇒ Object



251
252
253
# File 'lib/dag/client/api/storage.rb', line 251

def file_label(suffix)
  "#{@label}_#{suffix}"
end

#object_label(suffix) ⇒ Object



247
248
249
# File 'lib/dag/client/api/storage.rb', line 247

def object_label(suffix)
  "/#{@db_name}/#{@tbl_name}/#{@label}_#{suffix}.gz"
end

#storage_prefixObject



255
256
257
# File 'lib/dag/client/api/storage.rb', line 255

def storage_prefix
  "#{@tbl_name}/#{@label}"
end

#url(suffix) ⇒ Object



243
244
245
# File 'lib/dag/client/api/storage.rb', line 243

def url(suffix)
  "/#{@tbl_name}/#{@label}_#{suffix}.gz"
end