Class: ActsAsSpan::SpanKlass
- Inherits:
-
Object
- Object
- ActsAsSpan::SpanKlass
- Includes:
- Status
- Defined in:
- lib/acts_as_span/span_klass.rb,
lib/acts_as_span/span_klass/status.rb
Defined Under Namespace
Modules: Status
Instance Attribute Summary collapse
-
#acts_as_span_definition ⇒ Object
readonly
Returns the value of attribute acts_as_span_definition.
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, klass, acts_as_span_definition) ⇒ SpanKlass
constructor
A new instance of SpanKlass.
Constructor Details
#initialize(name, klass, acts_as_span_definition) ⇒ SpanKlass
Returns a new instance of SpanKlass.
17 18 19 20 21 |
# File 'lib/acts_as_span/span_klass.rb', line 17 def initialize(name, klass, acts_as_span_definition) @name = name @klass = klass @acts_as_span_definition = acts_as_span_definition end |
Instance Attribute Details
#acts_as_span_definition ⇒ Object (readonly)
Returns the value of attribute acts_as_span_definition.
15 16 17 |
# File 'lib/acts_as_span/span_klass.rb', line 15 def acts_as_span_definition @acts_as_span_definition end |
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
15 16 17 |
# File 'lib/acts_as_span/span_klass.rb', line 15 def klass @klass end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
15 16 17 |
# File 'lib/acts_as_span/span_klass.rb', line 15 def name @name end |