Class: InferModel::Task
- Inherits:
-
Object
- Object
- InferModel::Task
- Defined in:
- lib/infer_model/task.rb
Constant Summary collapse
- FROMS =
{ csv: ::InferModel::From::CSV }.freeze
- TOS =
{ migration: ::InferModel::To::Migration, text: ::InferModel::To::Text, }.freeze
Instance Attribute Summary collapse
-
#from_args ⇒ Object
readonly
Returns the value of attribute from_args.
-
#from_object ⇒ Object
readonly
Returns the value of attribute from_object.
-
#from_opts ⇒ Object
readonly
Returns the value of attribute from_opts.
-
#to_args ⇒ Object
readonly
Returns the value of attribute to_args.
-
#to_object ⇒ Object
readonly
Returns the value of attribute to_object.
-
#to_opts ⇒ Object
readonly
Returns the value of attribute to_opts.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#from_args ⇒ Object (readonly)
Returns the value of attribute from_args.
11 12 13 |
# File 'lib/infer_model/task.rb', line 11 def from_args @from_args end |
#from_object ⇒ Object (readonly)
Returns the value of attribute from_object.
11 12 13 |
# File 'lib/infer_model/task.rb', line 11 def from_object @from_object end |
#from_opts ⇒ Object (readonly)
Returns the value of attribute from_opts.
11 12 13 |
# File 'lib/infer_model/task.rb', line 11 def from_opts @from_opts end |
#to_args ⇒ Object (readonly)
Returns the value of attribute to_args.
11 12 13 |
# File 'lib/infer_model/task.rb', line 11 def to_args @to_args end |
#to_object ⇒ Object (readonly)
Returns the value of attribute to_object.
11 12 13 |
# File 'lib/infer_model/task.rb', line 11 def to_object @to_object end |
#to_opts ⇒ Object (readonly)
Returns the value of attribute to_opts.
11 12 13 |
# File 'lib/infer_model/task.rb', line 11 def to_opts @to_opts end |
Class Method Details
.from ⇒ Object
34 |
# File 'lib/infer_model/task.rb', line 34 def from(...) = new.from(...) |
.to ⇒ Object
35 |
# File 'lib/infer_model/task.rb', line 35 def to(...) = new.to(...) |
Instance Method Details
#call ⇒ Object
29 30 31 |
# File 'lib/infer_model/task.rb', line 29 def call to_object.call(from_object.call(*from_args, **from_opts), *to_args, **to_opts) end |