Class: TimeStreamer::VersionViewModel
- Inherits:
-
Object
- Object
- TimeStreamer::VersionViewModel
- Defined in:
- lib/time_streamer/version_view_model.rb
Instance Attribute Summary collapse
-
#changes ⇒ Object
readonly
Returns the value of attribute changes.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(id:, title:, metadata:, changes:) ⇒ VersionViewModel
constructor
A new instance of VersionViewModel.
Constructor Details
#initialize(id:, title:, metadata:, changes:) ⇒ VersionViewModel
Returns a new instance of VersionViewModel.
7 8 9 10 11 12 |
# File 'lib/time_streamer/version_view_model.rb', line 7 def initialize(id:, title:, metadata:, changes:) @id = id @title = title @metadata = @changes = changes end |
Instance Attribute Details
#changes ⇒ Object (readonly)
Returns the value of attribute changes.
5 6 7 |
# File 'lib/time_streamer/version_view_model.rb', line 5 def changes @changes end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/time_streamer/version_view_model.rb', line 5 def id @id end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
5 6 7 |
# File 'lib/time_streamer/version_view_model.rb', line 5 def @metadata end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
5 6 7 |
# File 'lib/time_streamer/version_view_model.rb', line 5 def title @title end |