Class: IERS::DataStatus
- Inherits:
-
Data
- Object
- Data
- IERS::DataStatus
- Defined in:
- lib/iers/data_status.rb
Instance Attribute Summary collapse
-
#cache_age ⇒ Integer?
readonly
age in seconds, or +nil+.
-
#source ⇒ Symbol
readonly
+:cached+, +:custom+, or +:bundled+.
Instance Method Summary collapse
Instance Attribute Details
#cache_age ⇒ Integer? (readonly)
age in seconds, or +nil+
6 7 8 |
# File 'lib/iers/data_status.rb', line 6 def cache_age @cache_age end |
#source ⇒ Symbol (readonly)
+:cached+, +:custom+, or +:bundled+
6 7 8 |
# File 'lib/iers/data_status.rb', line 6 def source @source end |
Instance Method Details
#bundled? ⇒ Boolean
13 14 15 |
# File 'lib/iers/data_status.rb', line 13 def bundled? source == :bundled end |
#cached? ⇒ Boolean
8 9 10 |
# File 'lib/iers/data_status.rb', line 8 def cached? source == :cached end |
#custom? ⇒ Boolean
18 19 20 |
# File 'lib/iers/data_status.rb', line 18 def custom? source == :custom end |