Class: Druid::Granularity

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
lib/druid/granularity.rb

Defined Under Namespace

Classes: OriginValidator, PeriodValidator

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#originObject

Returns the value of attribute origin.



31
32
33
# File 'lib/druid/granularity.rb', line 31

def origin
  @origin
end

#periodObject

Returns the value of attribute period.



15
16
17
# File 'lib/druid/granularity.rb', line 15

def period
  @period
end

#timeZoneObject

Returns the value of attribute timeZone.



18
19
20
# File 'lib/druid/granularity.rb', line 18

def timeZone
  @timeZone
end

#typeObject

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(options = {})
  super(options.merge(except: %w(errors validation_context)))
end