Class: DataKitten::Temporal

Inherits:
Object
  • Object
show all
Defined in:
lib/data_kitten/temporal.rb

Overview

The temporal coverage of a Dataset or Distribution

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Temporal

Create a new Temporal object.

Parameters:

  • options (Hash)

    A set of options with which to initialise the temporal coverage.

Options Hash (options):

  • :start (Date)

    the start date of the temporal coverage

  • :end (Date)

    the end date of the temporal coverage



20
21
22
23
# File 'lib/data_kitten/temporal.rb', line 20

def initialize(options)
  @start = options[:start]
  @end = options[:end]
end

Instance Attribute Details

#endDate

Returns the end date of the temporal coverage.

Returns:

  • (Date)

    the end date of the temporal coverage



13
14
15
# File 'lib/data_kitten/temporal.rb', line 13

def end
  @end
end

#startDate

Returns the start date of the temporal coverage.

Returns:

  • (Date)

    the start date of the temporal coverage



9
10
11
# File 'lib/data_kitten/temporal.rb', line 9

def start
  @start
end