Class: Oximeter::Configuration::Model

Inherits:
Object
  • Object
show all
Defined in:
lib/oximeter/configuration/model.rb

Constant Summary collapse

ATTRIBUTES =
%w(
  label
  pull_last
  period
  group_field
).freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entity) ⇒ Model

Returns a new instance of Model.



13
14
15
16
# File 'lib/oximeter/configuration/model.rb', line 13

def initialize(entity)
  @entity = entity
  @setup = {}
end

Instance Attribute Details

#entityObject (readonly)

Returns the value of attribute entity.



4
5
6
# File 'lib/oximeter/configuration/model.rb', line 4

def entity
  @entity
end

#setupObject (readonly)

Returns the value of attribute setup.



4
5
6
# File 'lib/oximeter/configuration/model.rb', line 4

def setup
  @setup
end