Class: Timezone::Parser::Zone::Entry
- Inherits:
-
Object
- Object
- Timezone::Parser::Zone::Entry
- Defined in:
- lib/timezone/parser/zone/entry.rb
Instance Attribute Summary collapse
-
#end_date ⇒ Object
readonly
Returns the value of attribute end_date.
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
-
#rules ⇒ Object
readonly
Returns the value of attribute rules.
Instance Method Summary collapse
-
#initialize(name, offset, rule, format, end_date) ⇒ Entry
constructor
A new instance of Entry.
Constructor Details
#initialize(name, offset, rule, format, end_date) ⇒ Entry
Returns a new instance of Entry.
12 13 14 15 16 17 18 |
# File 'lib/timezone/parser/zone/entry.rb', line 12 def initialize(name, offset, rule, format, end_date) @name, @format = name, format @end_date = parse_end_date(end_date) @offset = parse_offset(offset) @rules = parse_rules(rule, @end_date) end |
Instance Attribute Details
#end_date ⇒ Object (readonly)
Returns the value of attribute end_date.
10 11 12 |
# File 'lib/timezone/parser/zone/entry.rb', line 10 def end_date @end_date end |
#format ⇒ Object (readonly)
Returns the value of attribute format.
10 11 12 |
# File 'lib/timezone/parser/zone/entry.rb', line 10 def format @format end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
10 11 12 |
# File 'lib/timezone/parser/zone/entry.rb', line 10 def name @name end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
10 11 12 |
# File 'lib/timezone/parser/zone/entry.rb', line 10 def offset @offset end |
#rules ⇒ Object (readonly)
Returns the value of attribute rules.
10 11 12 |
# File 'lib/timezone/parser/zone/entry.rb', line 10 def rules @rules end |