Module: MnoEnterprise::TestingSupport::SharedContexts::JpiV1AdminImpacController

Defined in:
lib/mno_enterprise/testing_support/shared_contexts/jpi_v1_admin_impac_controller.rb

Instance Method Summary collapse

Instance Method Details

#hash_for_kpi(kpi) ⇒ Object



2
3
4
5
6
7
8
# File 'lib/mno_enterprise/testing_support/shared_contexts/jpi_v1_admin_impac_controller.rb', line 2

def hash_for_kpi(kpi)
  {
    "id" => kpi.id,
    "element_watched" => kpi.element_watched,
    "endpoint" => kpi.endpoint
  }
end