class Logidze::History::Version

Represents one log item

Constants

CHANGES

Changes key

META

Meta key

META_RESPONSIBLE

Meta Responsible ID

RESPONSIBLE

Responsible ID

TS

Timestamp key

Attributes

data[R]

Public Class Methods

new(data) click to toggle source
# File lib/logidze/history/version.rb, line 20
def initialize(data)
  @data = data
end

Public Instance Methods

changes() click to toggle source
# File lib/logidze/history/version.rb, line 28
def changes
  data.fetch(CHANGES)
end
meta() click to toggle source
# File lib/logidze/history/version.rb, line 40
def meta
  data[META]
end
responsible_id() click to toggle source
# File lib/logidze/history/version.rb, line 36
def responsible_id
  meta && meta[META_RESPONSIBLE] || data[RESPONSIBLE]
end
time() click to toggle source
# File lib/logidze/history/version.rb, line 32
def time
  data.fetch(TS)
end
version() click to toggle source
# File lib/logidze/history/version.rb, line 24
def version
  data.fetch(VERSION)
end