Class: List::Step

Inherits:
Object
  • Object
show all
Defined in:
lib/checkcheckit/list.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, body = '') ⇒ Step

Returns a new instance of Step.



44
45
46
47
# File 'lib/checkcheckit/list.rb', line 44

def initialize(name, body = '')
  @name = name
  @body = body
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



42
43
44
# File 'lib/checkcheckit/list.rb', line 42

def body
  @body
end

#commandsObject

Returns the value of attribute commands.



42
43
44
# File 'lib/checkcheckit/list.rb', line 42

def commands
  @commands
end

#nameObject

Returns the value of attribute name.



42
43
44
# File 'lib/checkcheckit/list.rb', line 42

def name
  @name
end

Instance Method Details

#to_hObject



55
56
57
# File 'lib/checkcheckit/list.rb', line 55

def to_h
  {name: @name, body: @body}
end