Class: Ynl::Models::Operation
- Inherits:
-
Object
- Object
- Ynl::Models::Operation
- Defined in:
- lib/ynl/models.rb
Instance Attribute Summary collapse
-
#attribute_set ⇒ Object
readonly
Returns the value of attribute attribute_set.
-
#doc ⇒ Object
readonly
Returns the value of attribute doc.
-
#doit ⇒ Object
readonly
Returns the value of attribute doit.
-
#dumpit ⇒ Object
readonly
Returns the value of attribute dumpit.
-
#fixed_header ⇒ Object
readonly
Returns the value of attribute fixed_header.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:, doc:, fixed_header:, attribute_set:, doit:, dumpit:) ⇒ Operation
constructor
A new instance of Operation.
- #resolve(f) ⇒ Object
Constructor Details
#initialize(name:, doc:, fixed_header:, attribute_set:, doit:, dumpit:) ⇒ Operation
Returns a new instance of Operation.
154 155 156 157 158 159 160 161 |
# File 'lib/ynl/models.rb', line 154 def initialize(name:, doc:, fixed_header:, attribute_set:, doit:, dumpit:) @name = name @doc = doc @fixed_header = fixed_header @attribute_set = attribute_set @doit = doit @dumpit = dumpit end |
Instance Attribute Details
#attribute_set ⇒ Object (readonly)
Returns the value of attribute attribute_set.
152 153 154 |
# File 'lib/ynl/models.rb', line 152 def attribute_set @attribute_set end |
#doc ⇒ Object (readonly)
Returns the value of attribute doc.
152 153 154 |
# File 'lib/ynl/models.rb', line 152 def doc @doc end |
#doit ⇒ Object (readonly)
Returns the value of attribute doit.
152 153 154 |
# File 'lib/ynl/models.rb', line 152 def doit @doit end |
#dumpit ⇒ Object (readonly)
Returns the value of attribute dumpit.
152 153 154 |
# File 'lib/ynl/models.rb', line 152 def dumpit @dumpit end |
#fixed_header ⇒ Object (readonly)
Returns the value of attribute fixed_header.
152 153 154 |
# File 'lib/ynl/models.rb', line 152 def fixed_header @fixed_header end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
152 153 154 |
# File 'lib/ynl/models.rb', line 152 def name @name end |
Instance Method Details
#resolve(f) ⇒ Object
163 164 165 166 167 |
# File 'lib/ynl/models.rb', line 163 def resolve(f) @doit = @doit&.resolve(f) @dumpit = @dumpit&.resolve(f) self end |