Class: Renderer::Entities::SourceDefinition
- Defined in:
- lib/renderer/entities/source_definition.rb
Instance Attribute Summary collapse
-
#end_at ⇒ Object
Returns the value of attribute end_at.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#markdown_source ⇒ Object
Returns the value of attribute markdown_source.
-
#source ⇒ Object
Returns the value of attribute source.
-
#start_at ⇒ Object
Returns the value of attribute start_at.
Instance Method Summary collapse
-
#initialize(_parent, model) ⇒ SourceDefinition
constructor
A new instance of SourceDefinition.
Constructor Details
#initialize(_parent, model) ⇒ SourceDefinition
Returns a new instance of SourceDefinition.
8 9 10 11 12 13 14 |
# File 'lib/renderer/entities/source_definition.rb', line 8 def initialize(_parent, model) @end_at = model[:end_at] @start_at = model[:start_at] @source = model[:source] @markdown_source = model[:markdown_source] @filename = model[:filename] end |
Instance Attribute Details
#end_at ⇒ Object
Returns the value of attribute end_at.
6 7 8 |
# File 'lib/renderer/entities/source_definition.rb', line 6 def end_at @end_at end |
#filename ⇒ Object
Returns the value of attribute filename.
6 7 8 |
# File 'lib/renderer/entities/source_definition.rb', line 6 def filename @filename end |
#markdown_source ⇒ Object
Returns the value of attribute markdown_source.
6 7 8 |
# File 'lib/renderer/entities/source_definition.rb', line 6 def markdown_source @markdown_source end |
#source ⇒ Object
Returns the value of attribute source.
6 7 8 |
# File 'lib/renderer/entities/source_definition.rb', line 6 def source @source end |
#start_at ⇒ Object
Returns the value of attribute start_at.
6 7 8 |
# File 'lib/renderer/entities/source_definition.rb', line 6 def start_at @start_at end |