Class: Dag::Client::API::Storage::Import::ImportParameter
- Inherits:
-
Object
- Object
- Dag::Client::API::Storage::Import::ImportParameter
- Includes:
- Singleton
- Defined in:
- lib/dag/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.
239 240 241 |
# File 'lib/dag/client/api/storage.rb', line 239 def initialize @index = 1 end |
Instance Attribute Details
#db_name ⇒ Object
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 |
#index ⇒ Object
Returns the value of attribute index.
237 238 239 |
# File 'lib/dag/client/api/storage.rb', line 237 def index @index end |
#label ⇒ Object
Returns the value of attribute label.
237 238 239 |
# File 'lib/dag/client/api/storage.rb', line 237 def label @label end |
#tbl_name ⇒ Object
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_prefix ⇒ Object
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 |