Class: Bootprint::Plugins::Definition

Inherits:
Struct
  • Object
show all
Defined in:
lib/bootprint/plugins.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#collector_classObject

Returns the value of attribute collector_class

Returns:

  • (Object)

    the current value of collector_class



18
19
20
# File 'lib/bootprint/plugins.rb', line 18

def collector_class
  @collector_class
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



18
19
20
# File 'lib/bootprint/plugins.rb', line 18

def name
  @name
end

#registration_errorObject

Returns the value of attribute registration_error

Returns:

  • (Object)

    the current value of registration_error



18
19
20
# File 'lib/bootprint/plugins.rb', line 18

def registration_error
  @registration_error
end

#rules_moduleObject

Returns the value of attribute rules_module

Returns:

  • (Object)

    the current value of rules_module



18
19
20
# File 'lib/bootprint/plugins.rb', line 18

def rules_module
  @rules_module
end

Instance Method Details

#collector(value = nil) ⇒ Object



19
20
21
22
# File 'lib/bootprint/plugins.rb', line 19

def collector(value = nil)
  self.collector_class = value if value
  collector_class
end

#rules(value = nil) ⇒ Object



24
25
26
27
# File 'lib/bootprint/plugins.rb', line 24

def rules(value = nil)
  self.rules_module = value if value
  rules_module
end