Class: Aspector::AdviceMetadata
- Inherits:
-
Object
- Object
- Aspector::AdviceMetadata
- 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
-
#advice_type ⇒ Object
readonly
Returns the value of attribute advice_type.
-
#default_options ⇒ Object
readonly
Returns the value of attribute default_options.
Instance Method Summary collapse
-
#initialize(advice_type, default_options = {}) ⇒ AdviceMetadata
constructor
A new instance of AdviceMetadata.
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, = {}) @advice_type = advice_type @default_options = end |
Instance Attribute Details
#advice_type ⇒ Object (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_options ⇒ Object (readonly)
Returns the value of attribute default_options.
4 5 6 |
# File 'lib/aspector/advice_metadata.rb', line 4 def @default_options end |