Class: Company::Window

Inherits:
Resource show all
Defined in:
lib/company/resources/window.rb

Overview

Free time: a stretch nobody is booked for, which somebody could be sent out in. It names no work and nobody going, a list of them having been asked for one technician already, and it is as long as it is -- cut it into offerable pieces where an offer is being made, since only the caller making one knows how long it needs them to be.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Resource

#id, #initialize, keys, node_keys

Constructor Details

This class inherits a constructor from Company::Resource

Class Method Details

.attributes ⇒ Object

What every window reads, by the vocabulary's names.



8
# File 'lib/company/resources/window.rb', line 8

def self.attributes = i[starts_at ends_at]

Instance Method Details

#ends_at ⇒ Time

Returns moment the free stretch closes.

Returns:

  • (Time) —

    moment the free stretch closes.



14
# File 'lib/company/resources/window.rb', line 14

def ends_at = time :ends_at

#starts_at ⇒ Time

Returns moment the free stretch opens.

Returns:

  • (Time) —

    moment the free stretch opens.



11
# File 'lib/company/resources/window.rb', line 11

def starts_at = time :starts_at