Class: Druid::Granularity
- Inherits:
-
Object
- Object
- Druid::Granularity
- Includes:
- ActiveModel::Model
- Defined in:
- lib/druid/granularity.rb
Defined Under Namespace
Classes: OriginValidator, PeriodValidator
Instance Attribute Summary collapse
-
#origin ⇒ Object
Returns the value of attribute origin.
-
#period ⇒ Object
Returns the value of attribute period.
-
#timeZone ⇒ Object
Returns the value of attribute timeZone.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#origin ⇒ Object
Returns the value of attribute origin.
31 32 33 |
# File 'lib/druid/granularity.rb', line 31 def origin @origin end |
#period ⇒ Object
Returns the value of attribute period.
15 16 17 |
# File 'lib/druid/granularity.rb', line 15 def period @period end |
#timeZone ⇒ Object
Returns the value of attribute timeZone.
18 19 20 |
# File 'lib/druid/granularity.rb', line 18 def timeZone @timeZone end |
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/druid/granularity.rb', line 5 def type @type end |
Instance Method Details
#as_json(options = {}) ⇒ Object
34 35 36 |
# File 'lib/druid/granularity.rb', line 34 def as_json( = {}) super(.merge(except: %w(errors validation_context))) end |