Class: Configurator
- Inherits:
-
Object
- Object
- Configurator
- Defined in:
- lib/j2j/configurator.rb
Overview
Set default values here, some can be overridden on command line
Instance Attribute Summary collapse
-
#json_file ⇒ Object
Returns the value of attribute json_file.
-
#json_property_import ⇒ Object
Returns the value of attribute json_property_import.
-
#json_serialize_import ⇒ Object
Returns the value of attribute json_serialize_import.
-
#output_directory ⇒ Object
Returns the value of attribute output_directory.
-
#package ⇒ Object
Returns the value of attribute package.
-
#top_level_class ⇒ Object
Returns the value of attribute top_level_class.
-
#unknown_class ⇒ Object
Returns the value of attribute unknown_class.
Instance Method Summary collapse
-
#initialize ⇒ Configurator
constructor
A new instance of Configurator.
Constructor Details
#initialize ⇒ Configurator
Returns a new instance of Configurator.
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/j2j/configurator.rb', line 10 def initialize # If types cannot be inferred from example json, they will be represented with Object unless overridden. # In which case, UNKNOWN will be used. This will prohibit the class from compiling. self.unknown_class = "Object" self.json_property_import = "import java.util.Date;" self.json_serialize_import = "import com.google.gson.annotations.SerializedName;" end |
Instance Attribute Details
#json_file ⇒ Object
Returns the value of attribute json_file.
5 6 7 |
# File 'lib/j2j/configurator.rb', line 5 def json_file @json_file end |
#json_property_import ⇒ Object
Returns the value of attribute json_property_import.
5 6 7 |
# File 'lib/j2j/configurator.rb', line 5 def json_property_import @json_property_import end |
#json_serialize_import ⇒ Object
Returns the value of attribute json_serialize_import.
5 6 7 |
# File 'lib/j2j/configurator.rb', line 5 def json_serialize_import @json_serialize_import end |
#output_directory ⇒ Object
Returns the value of attribute output_directory.
5 6 7 |
# File 'lib/j2j/configurator.rb', line 5 def output_directory @output_directory end |
#package ⇒ Object
Returns the value of attribute package.
5 6 7 |
# File 'lib/j2j/configurator.rb', line 5 def package @package end |
#top_level_class ⇒ Object
Returns the value of attribute top_level_class.
5 6 7 |
# File 'lib/j2j/configurator.rb', line 5 def top_level_class @top_level_class end |
#unknown_class ⇒ Object
Returns the value of attribute unknown_class.
5 6 7 |
# File 'lib/j2j/configurator.rb', line 5 def unknown_class @unknown_class end |