Class: Cuker::JiraModel
- Inherits:
-
AbstractModel
- Object
- AbstractModel
- Cuker::JiraModel
- Includes:
- LoggerSetup, StringHelper
- Defined in:
- lib/cuker/helpers/formatters/jira_model.rb
Direct Known Subclasses
Constant Summary collapse
- TITLE_MAX_LEN =
40
- JIRA_BLANK =
' '
- JIRA_TITLE_SEP =
'||'
- JIRA_ROW_SEP =
'|'
- JIRA_EMPTY_LINE =
'(empty line)'
- JIRA_NEW_LINE =
'\\\\'
- JIRA_HORIZ_RULER =
'----'
- JIRA_ICONS =
{ info: "(i)", pass: "(/)", fail: "(x)", exclam: "(!)", question: "(?)", empty: JIRA_BLANK }
Constants inherited from AbstractModel
AbstractModel::AND, AbstractModel::BACKGROUND, AbstractModel::BUT, AbstractModel::EXAMPLES, AbstractModel::FEATURE, AbstractModel::GIVEN, AbstractModel::SCENARIO, AbstractModel::SCENARIO_OUTLINE, AbstractModel::THEN, AbstractModel::WHEN
Instance Attribute Summary
Attributes included from LoggerSetup
Attributes inherited from AbstractModel
Instance Method Summary collapse
-
#initialize(ast_map) ⇒ JiraModel
constructor
A new instance of JiraModel.
Methods included from StringHelper
#add_newlines, #add_newlines!, #add_newlines_regex
Methods included from LoggerSetup
#init_logger, reset_appender_log_levels
Methods inherited from AbstractModel
#get_keys_ary, #get_tags, #get_values_ary, #simple_surround, #surround, #union
Methods included from Interface
Constructor Details
#initialize(ast_map) ⇒ JiraModel
Returns a new instance of JiraModel.
26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/cuker/helpers/formatters/jira_model.rb', line 26 def initialize ast_map super @log.trace "initing #{self.class}" @log.debug "has #{ast_map.size} items" @asts = ast_map @order = make_order title = make_title @order data = make_rows @title = surround(title, JIRA_TITLE_SEP) @data = data.join("\n").split("\n") end |