Class: GoonModelGen::Converter::AbstractConv

Inherits:
Object
  • Object
show all
Defined in:
lib/goon_model_gen/converter/abstract_conv.rb

Direct Known Subclasses

PayloadConv, ResultConv

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fileObject

ConvFile



6
7
8
# File 'lib/goon_model_gen/converter/abstract_conv.rb', line 6

def file
  @file
end

#gen_typeObject (readonly)

TypeRef Payload/Result



9
10
11
# File 'lib/goon_model_gen/converter/abstract_conv.rb', line 9

def gen_type
  @gen_type
end

#mappingsObject (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

#modelObject (readonly)

TypeRef



8
9
10
# File 'lib/goon_model_gen/converter/abstract_conv.rb', line 8

def model
  @model
end

#nameObject (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