Sha256: ef5d2ea647d4666295e5d7bdad1a039b0d68fa28c548e9c279a7a7e1f467e628
Contents?: true
Size: 517 Bytes
Versions: 2
Compression:
Stored size: 517 Bytes
Contents
module Soybean module Generators class ModelGenerator include BaseGenerator attr_reader :name def initialize(wsdl) @wsdl = wsdl @name = (wsdl.name.name.underscore rescue 'base') end def dir 'models' end def generate "class #{class_name} < #{interface_name}\nend" end def class_name @name.camelize end def interface_name @name.camelize.gsub(/Service$/,'Interface') end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
soybean-2.1.1 | lib/soybean/generators/model_generator.rb |
soybean-2.1.0 | lib/soybean/generators/model_generator.rb |