Class: TimeStreamer::VersionViewModel

Inherits:
Object
  • Object
show all
Defined in:
lib/time_streamer/version_view_model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#changesObject (readonly)

Returns the value of attribute changes.



5
6
7
# File 'lib/time_streamer/version_view_model.rb', line 5

def changes
  @changes
end

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/time_streamer/version_view_model.rb', line 5

def id
  @id
end

#metadataObject (readonly)

Returns the value of attribute metadata.



5
6
7
# File 'lib/time_streamer/version_view_model.rb', line 5

def 
  @metadata
end

#titleObject (readonly)

Returns the value of attribute title.



5
6
7
# File 'lib/time_streamer/version_view_model.rb', line 5

def title
  @title
end