Class: Ynl::Models::Operation

Inherits:
Object
  • Object
show all
Defined in:
ynl/lib/ynl/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, doc:, flags:, fixed_header:, attribute_set:, doit:, dumpit:, notification:) ⇒ Operation

Returns a new instance of Operation.



168
169
170
171
172
173
174
175
176
177
# File 'ynl/lib/ynl/models.rb', line 168

def initialize(name:, doc:, flags:, fixed_header:, attribute_set:, doit:, dumpit:, notification:)
  @name = name
  @doc = doc
  @flags = flags
  @fixed_header = fixed_header
  @attribute_set = attribute_set
  @doit = doit
  @dumpit = dumpit
  @notification = notification
end

Instance Attribute Details

#attribute_set ⇒ Object (readonly)

Returns the value of attribute attribute_set.



166
167
168
# File 'ynl/lib/ynl/models.rb', line 166

def attribute_set
  @attribute_set
end

#doc ⇒ Object (readonly)

Returns the value of attribute doc.



166
167
168
# File 'ynl/lib/ynl/models.rb', line 166

def doc
  @doc
end

#doit ⇒ Object (readonly)

Returns the value of attribute doit.



166
167
168
# File 'ynl/lib/ynl/models.rb', line 166

def doit
  @doit
end

#dumpit ⇒ Object (readonly)

Returns the value of attribute dumpit.



166
167
168
# File 'ynl/lib/ynl/models.rb', line 166

def dumpit
  @dumpit
end

#fixed_header ⇒ Object (readonly)

Returns the value of attribute fixed_header.



166
167
168
# File 'ynl/lib/ynl/models.rb', line 166

def fixed_header
  @fixed_header
end

#flags ⇒ Object (readonly)

Returns the value of attribute flags.



166
167
168
# File 'ynl/lib/ynl/models.rb', line 166

def flags
  @flags
end

#name ⇒ Object (readonly)

Returns the value of attribute name.



166
167
168
# File 'ynl/lib/ynl/models.rb', line 166

def name
  @name
end

#notification ⇒ Object (readonly)

Returns the value of attribute notification.



166
167
168
# File 'ynl/lib/ynl/models.rb', line 166

def notification
  @notification
end

Instance Method Details

#resolve(f) ⇒ Object



179
180
181
182
183
184
# File 'ynl/lib/ynl/models.rb', line 179

def resolve(f)
  @doit = @doit&.resolve(f)
  @dumpit = @dumpit&.resolve(f)
  @notification = @notification&.resolve(f)
  self
end