Module: CLLI::LocationType::ClassMethods
- Includes:
- Pattern
- Defined in:
- lib/clli/location_type.rb
Overview
These methods will be available in the CLLI class.
Instance Method Summary collapse
-
#location_type(code) ⇒ Object
Lookup the entity code description for a parsed
CLLI
string.
Methods included from Pattern
Instance Method Details
#location_type(code) ⇒ Object
Lookup the entity code description for a parsed CLLI
string.
Params:
code
-
the
CLLI
:location_code
or:customer_code
attribute value.
25 26 27 28 |
# File 'lib/clli/location_type.rb', line 25 def location_type(code) @location_type_data ||= YAMLData.new(%w(clli data location_types.yml)) @location_type_data.get(code) end |