Sha256: 3c3a1a1a70e3910ef417b262b092ee4c32b91278fa25dfd61468af23c98ca264

Contents?: true

Size: 318 Bytes

Versions: 19

Compression:

Stored size: 318 Bytes

Contents

class OTRS::ConfigItem::DeploymentState
  
  def self.states
    items = OTRS::GeneralCatalog.item_list_fast('ITSM::ConfigItem::DeploymentState')
  end
  
  def self.all
    self.states
  end
  
  self.all.each do |key,value|
    define_singleton_method value.downcase.underscore do
      return key
    end
  end

end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
otrs_connector-0.5.19 lib/otrs_connector/config_item/deployment_state.rb
otrs_connector-0.5.18 lib/otrs_connector/config_item/deployment_state.rb
otrs_connector-0.5.17 lib/otrs_connector/config_item/deployment_state.rb
otrs_connector-0.5.16 lib/otrs_connector/config_item/deployment_state.rb
otrs_connector-0.5.15 lib/otrs_connector/config_item/deployment_state.rb
otrs_connector-0.5.14 lib/otrs_connector/config_item/deployment_state.rb
otrs_connector-0.5.13 lib/otrs/config_item/deployment_state.rb
otrs_connector-0.5.12 lib/otrs/config_item/deployment_state.rb
otrs_connector-0.5.11 lib/otrs/config_item/deployment_state.rb
otrs_connector-0.5.10 lib/otrs/config_item/deployment_state.rb
otrs_connector-0.5.9 lib/otrs/config_item/deployment_state.rb
otrs_connector-0.5.8 lib/otrs/config_item/deployment_state.rb
otrs_connector-0.5.7 lib/otrs/config_item/deployment_state.rb
otrs_connector-0.5.6 lib/otrs/config_item/deployment_state.rb
otrs_connector-0.5.4 lib/otrs/config_item/deployment_state.rb
otrs_connector-0.5.3 lib/otrs/config_item/deployment_state.rb
otrs_connector-0.5.2 lib/otrs/config_item/deployment_state.rb
otrs_connector-0.5.1 lib/otrs/config_item/deployment_state.rb
otrs_connector-0.5.0 lib/otrs/config_item/deployment_state.rb