Class: Contextizer::Context
- Inherits:
-
Struct
- Object
- Struct
- Contextizer::Context
- Defined in:
- lib/contextizer/context.rb
Overview
A value object that holds all the collected information about a project. This object is the result of the Collector phase and the input for the Renderer phase.
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
-
#files ⇒ Object
Returns the value of attribute files.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#project_name ⇒ Object
Returns the value of attribute project_name.
-
#target_path ⇒ Object
Returns the value of attribute target_path.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize ⇒ Context
Returns a new instance of Context.
15 16 17 18 19 20 |
# File 'lib/contextizer/context.rb', line 15 def initialize(*) super self. ||= {} self.files ||= [] self. ||= Time.now.utc.strftime("%Y-%m-%dT%H:%M:%SZ") end |
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command
6 7 8 |
# File 'lib/contextizer/context.rb', line 6 def command @command end |
#files ⇒ Object
Returns the value of attribute files
6 7 8 |
# File 'lib/contextizer/context.rb', line 6 def files @files end |
#metadata ⇒ Object
Returns the value of attribute metadata
6 7 8 |
# File 'lib/contextizer/context.rb', line 6 def end |
#project_name ⇒ Object
Returns the value of attribute project_name
6 7 8 |
# File 'lib/contextizer/context.rb', line 6 def project_name @project_name end |
#target_path ⇒ Object
Returns the value of attribute target_path
6 7 8 |
# File 'lib/contextizer/context.rb', line 6 def target_path @target_path end |
#timestamp ⇒ Object
Returns the value of attribute timestamp
6 7 8 |
# File 'lib/contextizer/context.rb', line 6 def end |