Class: GoonModelGen::Converter::AbstractConv
- Inherits:
-
Object
- Object
- GoonModelGen::Converter::AbstractConv
- Defined in:
- lib/goon_model_gen/converter/abstract_conv.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#file ⇒ Object
ConvFile.
-
#gen_type ⇒ Object
readonly
TypeRef Payload/Result.
-
#mappings ⇒ Object
readonly
Returns the value of attribute mappings.
-
#model ⇒ Object
readonly
TypeRef.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, model, gen_type, mappings) ⇒ AbstractConv
constructor
A new instance of AbstractConv.
Constructor Details
#initialize(name, model, gen_type, mappings) ⇒ AbstractConv
Returns a new instance of AbstractConv.
12 13 14 15 16 17 |
# File 'lib/goon_model_gen/converter/abstract_conv.rb', line 12 def initialize(name, model, gen_type, mappings) @name = name @model = model @gen_type = gen_type @mappings = mappings end |
Instance Attribute Details
#file ⇒ Object
ConvFile
6 7 8 |
# File 'lib/goon_model_gen/converter/abstract_conv.rb', line 6 def file @file end |
#gen_type ⇒ Object (readonly)
TypeRef Payload/Result
9 10 11 |
# File 'lib/goon_model_gen/converter/abstract_conv.rb', line 9 def gen_type @gen_type end |
#mappings ⇒ Object (readonly)
Returns the value of attribute mappings.
10 11 12 |
# File 'lib/goon_model_gen/converter/abstract_conv.rb', line 10 def mappings @mappings end |
#model ⇒ Object (readonly)
TypeRef
8 9 10 |
# File 'lib/goon_model_gen/converter/abstract_conv.rb', line 8 def model @model end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/goon_model_gen/converter/abstract_conv.rb', line 7 def name @name end |