Class: CiInACan::ViewModels::RunViewModel
- Defined in:
- lib/ci_in_a_can/view_models/run_view_model.rb
Instance Method Summary collapse
Methods inherited from ViewModel
#initialize, #method_missing, #the_original_value
Constructor Details
This class inherits a constructor from CiInACan::ViewModels::ViewModel
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class CiInACan::ViewModels::ViewModel
Instance Method Details
#to_html ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/ci_in_a_can/view_models/run_view_model.rb', line 7 def to_html <<EOF <tr> <td> #{created_at} </td> <td> <a href="/repo/#{repo}"> #{repo} </a> </td> <td> #{branch} </td> <td> #{passed ? 'Yes' : 'No'} </td> <td> <a href="/test_result/#{test_result_id}">#{sha}</a> </td> </tr> EOF end |