Class: Piglet::Inout::Store

Inherits:
Object
  • Object
show all
Includes:
Output, StorageTypes
Defined in:
lib/piglet/inout/store.rb

Overview

:nodoc:

Constant Summary

Constants included from StorageTypes

Piglet::Inout::StorageTypes::LOAD_STORE_FUNCTIONS

Instance Attribute Summary

Attributes included from Output

#relation

Instance Method Summary collapse

Methods included from StorageTypes

#resolve_load_store_function

Constructor Details

#initialize(relation, path, options = {}) ⇒ Store

Returns a new instance of Store.



9
10
11
# File 'lib/piglet/inout/store.rb', line 9

def initialize(relation, path, options={})
  @relation, @path, @using = relation, path, options[:using]
end

Instance Method Details

#to_sObject



13
14
15
16
17
18
# File 'lib/piglet/inout/store.rb', line 13

def to_s
  str  = super
  str << " INTO '#{@path}'"
  str << " USING #{resolve_load_store_function(@using)}" if @using
  str
end