Class: Fiveruns::Tuneup::Step::Extra

Inherits:
Object
  • Object
show all
Includes:
Templating
Defined in:
lib/fiveruns/tuneup/step.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Templating

#h, #to_html

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

#contentObject (readonly)

Returns the value of attribute content.



232
233
234
# File 'lib/fiveruns/tuneup/step.rb', line 232

def content
  @content
end

#extendedObject (readonly)

Returns the value of attribute extended.



232
233
234
# File 'lib/fiveruns/tuneup/step.rb', line 232

def extended
  @extended
end

#nameObject (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_jsonObject



239
240
241
# File 'lib/fiveruns/tuneup/step.rb', line 239

def to_json
  {:content => content, :extended => extended}.to_json
end