class Rookout::Processor::Paths::Canopy::AttributeOperation

Public Class Methods

new(name) click to toggle source
# File lib/rookout/processor/paths/canopy/markers.rb, line 34
def initialize name
  @name = name
end

Public Instance Methods

read(namespace, create) click to toggle source
# File lib/rookout/processor/paths/canopy/markers.rb, line 38
def read namespace, create
  namespace.read_attribute @name
rescue Exceptions::RookAttributeNotFound
  raise unless create
  namespace.write_attribute @name, Namespaces::ContainerNamespace.new
end
write(namespace, value) click to toggle source
# File lib/rookout/processor/paths/canopy/markers.rb, line 45
def write namespace, value
  namespace.write_attribute @name, value
end