Class: Trinamo::BaseConverter
- Inherits:
-
Object
- Object
- Trinamo::BaseConverter
- Defined in:
- lib/trinamo/converter/base_converter.rb
Direct Known Subclasses
DynamodbConverter, HdfsConverter, OptionConverter, S3Converter
Instance Attribute Summary collapse
-
#ddl ⇒ Object
Returns the value of attribute ddl.
-
#ddl_yaml_path ⇒ Object
Returns the value of attribute ddl_yaml_path.
Instance Method Summary collapse
- #convert(format) ⇒ Object
-
#initialize(ddl_yaml_path, ddl = nil) ⇒ BaseConverter
constructor
A new instance of BaseConverter.
Constructor Details
#initialize(ddl_yaml_path, ddl = nil) ⇒ BaseConverter
Returns a new instance of BaseConverter.
8 9 10 11 12 13 14 15 |
# File 'lib/trinamo/converter/base_converter.rb', line 8 def initialize(ddl_yaml_path, ddl = nil) @ddl_yaml_path = ddl_yaml_path @ddl = if ddl ddl else ddl_yaml_path ? YAML.load_file(ddl_yaml_path).deep_symbolize_keys : nil end end |
Instance Attribute Details
#ddl ⇒ Object
Returns the value of attribute ddl.
6 7 8 |
# File 'lib/trinamo/converter/base_converter.rb', line 6 def ddl @ddl end |
#ddl_yaml_path ⇒ Object
Returns the value of attribute ddl_yaml_path.
6 7 8 |
# File 'lib/trinamo/converter/base_converter.rb', line 6 def ddl_yaml_path @ddl_yaml_path end |