Class: RelatonItu::ItuGroup::Period
- Inherits:
-
Object
- Object
- RelatonItu::ItuGroup::Period
- Defined in:
- lib/relaton_itu/itu_group.rb
Instance Attribute Summary collapse
-
#finish ⇒ String, NilClass
readonly
Group period end year.
-
#start ⇒ String
readonly
Group period start year.
Instance Method Summary collapse
-
#initialize(start:, finish: nil) ⇒ Period
constructor
A new instance of Period.
- #to_xml(builder) ⇒ Object
Constructor Details
#initialize(start:, finish: nil) ⇒ Period
Returns a new instance of Period.
12 13 14 15 |
# File 'lib/relaton_itu/itu_group.rb', line 12 def initialize(start:, finish: nil) @start = start @finish = finish end |
Instance Attribute Details
#finish ⇒ String, NilClass (readonly)
Returns group period end year.
8 9 10 |
# File 'lib/relaton_itu/itu_group.rb', line 8 def finish @finish end |
#start ⇒ String (readonly)
Returns group period start year.
5 6 7 |
# File 'lib/relaton_itu/itu_group.rb', line 5 def start @start end |
Instance Method Details
#to_xml(builder) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/relaton_itu/itu_group.rb', line 18 def to_xml(builder) builder.period do builder.start start builder.end finish if finish end end |