Class: Aspector::AdviceMetadata

Inherits:
Object
  • Object
show all
Defined in:
lib/aspector/advice_metadata.rb

Overview

Metadata for Advice model

Constant Summary collapse

BEFORE =
new Aspector::Advice::BEFORE
BEFORE_FILTER =
new Aspector::Advice::BEFORE_FILTER
AFTER =
new Aspector::Advice::AFTER, result_arg: true
AROUND =
new Aspector::Advice::AROUND
RAW =
new Aspector::Advice::RAW

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(advice_type, default_options = {}) ⇒ AdviceMetadata

Returns a new instance of AdviceMetadata.



6
7
8
9
# File 'lib/aspector/advice_metadata.rb', line 6

def initialize(advice_type, default_options = {})
  @advice_type = advice_type
  @default_options = default_options
end

Instance Attribute Details

#advice_typeObject (readonly)

Returns the value of attribute advice_type.



4
5
6
# File 'lib/aspector/advice_metadata.rb', line 4

def advice_type
  @advice_type
end

#default_optionsObject (readonly)

Returns the value of attribute default_options.



4
5
6
# File 'lib/aspector/advice_metadata.rb', line 4

def default_options
  @default_options
end