Class: Dryer::Factories::Fields::Build

Inherits:
Services::SimpleService
  • Object
show all
Defined in:
lib/dryer/factories/fields/build.rb

Instance Method Summary collapse

Constructor Details

#initialize(name:, type:) ⇒ Build

Returns a new instance of Build.



7
8
9
10
# File 'lib/dryer/factories/fields/build.rb', line 7

def initialize(name:, type:)
  @name = name
  @type = type
end

Instance Method Details

#callObject



12
13
14
# File 'lib/dryer/factories/fields/build.rb', line 12

def call
  build_field(name, type)
end