Module: GS1::Barcode::Definitions::ClassMethods
- Defined in:
- lib/gs1/barcode/definitions.rb
Overview
Adding defintion class methods.
Instance Attribute Summary collapse
-
#records ⇒ Object
readonly
Returns the value of attribute records.
Instance Method Summary collapse
Instance Attribute Details
#records ⇒ Object (readonly)
Returns the value of attribute records.
14 15 16 |
# File 'lib/gs1/barcode/definitions.rb', line 14 def records @records end |
Instance Method Details
#define_records(*records) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/gs1/barcode/definitions.rb', line 16 def define_records(*records) @records ||= [] @records = records records.each do |record| attr_reader record.underscore_name end end |