Class: Opencdd::Parcel::SheetSchema::Column

Inherits:
Struct
  • Object
show all
Defined in:
lib/opencdd/parcel/sheet_schema.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#alternate_idObject

Returns the value of attribute alternate_id

Returns:

  • (Object)

    the current value of alternate_id



60
61
62
# File 'lib/opencdd/parcel/sheet_schema.rb', line 60

def alternate_id
  @alternate_id
end

#alternative_unitsObject

Returns the value of attribute alternative_units

Returns:

  • (Object)

    the current value of alternative_units



60
61
62
# File 'lib/opencdd/parcel/sheet_schema.rb', line 60

def alternative_units
  @alternative_units
end

#datatypeObject

Returns the value of attribute datatype

Returns:

  • (Object)

    the current value of datatype



60
61
62
# File 'lib/opencdd/parcel/sheet_schema.rb', line 60

def datatype
  @datatype
end

#default_data_supplierObject

Returns the value of attribute default_data_supplier

Returns:

  • (Object)

    the current value of default_data_supplier



60
61
62
# File 'lib/opencdd/parcel/sheet_schema.rb', line 60

def default_data_supplier
  @default_data_supplier
end

#default_data_versionObject

Returns the value of attribute default_data_version

Returns:

  • (Object)

    the current value of default_data_version



60
61
62
# File 'lib/opencdd/parcel/sheet_schema.rb', line 60

def default_data_version
  @default_data_version
end

#default_valueObject

Returns the value of attribute default_value

Returns:

  • (Object)

    the current value of default_value



60
61
62
# File 'lib/opencdd/parcel/sheet_schema.rb', line 60

def default_value
  @default_value
end

#definition_by_langObject

Returns the value of attribute definition_by_lang

Returns:

  • (Object)

    the current value of definition_by_lang



60
61
62
# File 'lib/opencdd/parcel/sheet_schema.rb', line 60

def definition_by_lang
  @definition_by_lang
end

#equivalent_idObject

Returns the value of attribute equivalent_id

Returns:

  • (Object)

    the current value of equivalent_id



60
61
62
# File 'lib/opencdd/parcel/sheet_schema.rb', line 60

def equivalent_id
  @equivalent_id
end

#indexObject

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



60
61
62
# File 'lib/opencdd/parcel/sheet_schema.rb', line 60

def index
  @index
end

#name_by_langObject

Returns the value of attribute name_by_lang

Returns:

  • (Object)

    the current value of name_by_lang



60
61
62
# File 'lib/opencdd/parcel/sheet_schema.rb', line 60

def name_by_lang
  @name_by_lang
end

#note_by_langObject

Returns the value of attribute note_by_lang

Returns:

  • (Object)

    the current value of note_by_lang



60
61
62
# File 'lib/opencdd/parcel/sheet_schema.rb', line 60

def note_by_lang
  @note_by_lang
end

#patternObject

Returns the value of attribute pattern

Returns:

  • (Object)

    the current value of pattern



60
61
62
# File 'lib/opencdd/parcel/sheet_schema.rb', line 60

def pattern
  @pattern
end

#property_idObject

Returns the value of attribute property_id

Returns:

  • (Object)

    the current value of property_id



60
61
62
# File 'lib/opencdd/parcel/sheet_schema.rb', line 60

def property_id
  @property_id
end

#raw_property_idObject

Returns the value of attribute raw_property_id

Returns:

  • (Object)

    the current value of raw_property_id



60
61
62
# File 'lib/opencdd/parcel/sheet_schema.rb', line 60

def raw_property_id
  @raw_property_id
end

#relationObject

Returns the value of attribute relation

Returns:

  • (Object)

    the current value of relation



60
61
62
# File 'lib/opencdd/parcel/sheet_schema.rb', line 60

def relation
  @relation
end

#requirementObject

Returns the value of attribute requirement

Returns:

  • (Object)

    the current value of requirement



60
61
62
# File 'lib/opencdd/parcel/sheet_schema.rb', line 60

def requirement
  @requirement
end

#sub_alternate_idObject

Returns the value of attribute sub_alternate_id

Returns:

  • (Object)

    the current value of sub_alternate_id



60
61
62
# File 'lib/opencdd/parcel/sheet_schema.rb', line 60

def sub_alternate_id
  @sub_alternate_id
end

#super_alternate_idObject

Returns the value of attribute super_alternate_id

Returns:

  • (Object)

    the current value of super_alternate_id



60
61
62
# File 'lib/opencdd/parcel/sheet_schema.rb', line 60

def super_alternate_id
  @super_alternate_id
end

#super_propertyObject

Returns the value of attribute super_property

Returns:

  • (Object)

    the current value of super_property



60
61
62
# File 'lib/opencdd/parcel/sheet_schema.rb', line 60

def super_property
  @super_property
end

#unitObject

Returns the value of attribute unit

Returns:

  • (Object)

    the current value of unit



60
61
62
# File 'lib/opencdd/parcel/sheet_schema.rb', line 60

def unit
  @unit
end

#unit_idObject

Returns the value of attribute unit_id

Returns:

  • (Object)

    the current value of unit_id



60
61
62
# File 'lib/opencdd/parcel/sheet_schema.rb', line 60

def unit_id
  @unit_id
end

#value_formatObject

Returns the value of attribute value_format

Returns:

  • (Object)

    the current value of value_format



60
61
62
# File 'lib/opencdd/parcel/sheet_schema.rb', line 60

def value_format
  @value_format
end

#variable_prefix_unitObject

Returns the value of attribute variable_prefix_unit

Returns:

  • (Object)

    the current value of variable_prefix_unit



60
61
62
# File 'lib/opencdd/parcel/sheet_schema.rb', line 60

def variable_prefix_unit
  @variable_prefix_unit
end

Instance Method Details

#definition(lang = :en) ⇒ Object



90
91
92
# File 'lib/opencdd/parcel/sheet_schema.rb', line 90

def definition(lang = :en)
  definition_by_lang[lang.to_s]
end

#key?Boolean

Returns:

  • (Boolean)


102
103
104
# File 'lib/opencdd/parcel/sheet_schema.rb', line 102

def key?
  requirement == "KEY"
end

#name(lang = :en) ⇒ Object



86
87
88
# File 'lib/opencdd/parcel/sheet_schema.rb', line 86

def name(lang = :en)
  name_by_lang[lang.to_s]
end

#note(lang = :en) ⇒ Object



94
95
96
# File 'lib/opencdd/parcel/sheet_schema.rb', line 94

def note(lang = :en)
  note_by_lang[lang.to_s]
end

#obsolete?Boolean

Returns:

  • (Boolean)


106
107
108
# File 'lib/opencdd/parcel/sheet_schema.rb', line 106

def obsolete?
  requirement == "OBS"
end

#required?Boolean

Returns:

  • (Boolean)


98
99
100
# File 'lib/opencdd/parcel/sheet_schema.rb', line 98

def required?
  requirement == "MAND"
end