Class: Lookback::Backends::Snapshot::Version

Inherits:
Struct
  • Object
show all
Defined in:
lib/lookback/backends.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes

Returns:

  • (Object)

    the current value of attributes



9
10
11
# File 'lib/lookback/backends.rb', line 9

def attributes
  @attributes
end

#eventObject

Returns the value of attribute event

Returns:

  • (Object)

    the current value of event



9
10
11
# File 'lib/lookback/backends.rb', line 9

def event
  @event
end

#numberObject

Returns the value of attribute number

Returns:

  • (Object)

    the current value of number



9
10
11
# File 'lib/lookback/backends.rb', line 9

def number
  @number
end

#recorded_atObject

Returns the value of attribute recorded_at

Returns:

  • (Object)

    the current value of recorded_at



9
10
11
# File 'lib/lookback/backends.rb', line 9

def recorded_at
  @recorded_at
end

Instance Method Details

#to_hObject



10
# File 'lib/lookback/backends.rb', line 10

def to_h = { number: number, recorded_at: recorded_at, attributes: attributes, event: event }