Class: KCommercial::KCPipeline::DocBuilder
- Inherits:
-
Object
- Object
- KCommercial::KCPipeline::DocBuilder
- Defined in:
- lib/KCommercialPipeline/core/change_log/doc_builder.rb
Class Method Summary collapse
- .build_doc ⇒ Object
- .build_doc_changes(msg) ⇒ Object
-
.build_doc_paragraph ⇒ Object
/n.
- .build_doc_title(title) ⇒ Object
-
.build_doc_version(version) ⇒ Object
3.0.0.
- .build_paragraph_element_list ⇒ Object
Class Method Details
.build_doc ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/KCommercialPipeline/core/change_log/doc_builder.rb', line 7 def build_doc { "docId" => "", "version" => -1, "editRequestList" => [] } end |
.build_doc_changes(msg) ⇒ Object
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/KCommercialPipeline/core/change_log/doc_builder.rb', line 72 def build_doc_changes(msg) { "type": "textRun", "textRun": { "text": "#{msg} \n", "style": { "bold": false, "fontSize": 11.0 } }, "range": { "startIndex": 1, "endIndex": 1 } } end |
.build_doc_paragraph ⇒ Object
/n
23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/KCommercialPipeline/core/change_log/doc_builder.rb', line 23 def build_doc_paragraph { "type": "textRun", "textRun": { "text": "\n", "style": {} }, "range": { "startIndex": 1, "endIndex": 1 } } end |
.build_doc_title(title) ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/KCommercialPipeline/core/change_log/doc_builder.rb', line 37 def build_doc_title(title) { "type": "textRun", "textRun": { "text": "#{title} \n", "style": { "bold": true, "fontSize": 14.0 } }, "range": { "startIndex": 1, "endIndex": 1 } } end |
.build_doc_version(version) ⇒ Object
3.0.0
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/KCommercialPipeline/core/change_log/doc_builder.rb', line 55 def build_doc_version(version) { "type": "textRun", "textRun": { "text": "#{version} \n", "style": { "bold": true, "fontSize": 26.0 } }, "range": { "startIndex": 1, "endIndex": 1 } } end |
.build_paragraph_element_list ⇒ Object
15 16 17 18 19 20 |
# File 'lib/KCommercialPipeline/core/change_log/doc_builder.rb', line 15 def build_paragraph_element_list { "type" => "insertParagraphElement", "paragraphElementList" => [] } end |