Class: Wfstatus::Builder
- Inherits:
-
Object
- Object
- Wfstatus::Builder
- Defined in:
- lib/wfstatus/builder.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
Instance Method Summary collapse
- #content ⇒ Object
-
#initialize(config, messages) ⇒ Builder
constructor
A new instance of Builder.
- #relevant_messages ⇒ Object
Constructor Details
#initialize(config, messages) ⇒ Builder
Returns a new instance of Builder.
5 6 7 8 |
# File 'lib/wfstatus/builder.rb', line 5 def initialize(config, ) @config = config @messages = end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
4 5 6 |
# File 'lib/wfstatus/builder.rb', line 4 def config @config end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
4 5 6 |
# File 'lib/wfstatus/builder.rb', line 4 def @messages end |
Instance Method Details
#content ⇒ Object
14 15 16 |
# File 'lib/wfstatus/builder.rb', line 14 def content .join("\n") end |
#relevant_messages ⇒ Object
10 11 12 |
# File 'lib/wfstatus/builder.rb', line 10 def @relevant_messages ||= @messages.select { |m| m.relevant? } end |