Class: Fiveruns::Tuneup::Step::Extra
- Inherits:
-
Object
- Object
- Fiveruns::Tuneup::Step::Extra
- Includes:
- Templating
- Defined in:
- lib/fiveruns/tuneup/step.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#extended ⇒ Object
readonly
Returns the value of attribute extended.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, content, extended = {}) ⇒ Extra
constructor
A new instance of Extra.
- #to_json ⇒ Object
Methods included from Templating
Constructor Details
#initialize(name, content, extended = {}) ⇒ Extra
Returns a new instance of Extra.
233 234 235 236 237 |
# File 'lib/fiveruns/tuneup/step.rb', line 233 def initialize(name, content, extended = {}) @name = name @content = content @extended = extended end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
232 233 234 |
# File 'lib/fiveruns/tuneup/step.rb', line 232 def content @content end |
#extended ⇒ Object (readonly)
Returns the value of attribute extended.
232 233 234 |
# File 'lib/fiveruns/tuneup/step.rb', line 232 def extended @extended end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
232 233 234 |
# File 'lib/fiveruns/tuneup/step.rb', line 232 def name @name end |
Instance Method Details
#to_json ⇒ Object
239 240 241 |
# File 'lib/fiveruns/tuneup/step.rb', line 239 def to_json {:content => content, :extended => extended}.to_json end |