Class: GOBL::Cal::Period

Inherits:
Object show all
Defined in:
lib/generated/gobl/cal/period.rb

Overview

Period represents two dates with a start and finish.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL Period structure

'https://gobl.org/draft-0/cal/period'

Instance Attribute Summary collapse

Method Summary

Methods inherited from Object

new

Methods inherited from Struct

#as_json, from_data, from_json!, #to_json

Instance Attribute Details

#endGOBL::Cal::Date (readonly)

End indicates when the period ends, and must be after the start date.

Returns:



29
# File 'lib/generated/gobl/cal/period.rb', line 29

property :end, GOBL::Cal::Date

#labelString (readonly)

Label is a short description of the period.

Returns:

  • (String)


18
# File 'lib/generated/gobl/cal/period.rb', line 18

property :label, String

#startGOBL::Cal::Date (readonly)

Start indicates when this period starts.

Returns:



23
# File 'lib/generated/gobl/cal/period.rb', line 23

property :start, GOBL::Cal::Date