Class: Rafflesia::OntologyColumnData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/ontology/ontology_column_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  aggregations: :aggregations,
  allowed_values: :allowed_values,
  analysis_role: :analysis_role,
  coordinate_system: :coordinate_system,
  description: :description,
  examples: :examples,
  identifier_namespace: :identifier_namespace,
  is_nullable: :is_nullable,
  name: :name,
  null_meaning: :null_meaning,
  ordinal: :ordinal,
  type: :type,
  unit: :unit,
  value_kind: :value_kind
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ OntologyColumnData

Returns a new instance of OntologyColumnData.



41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/rafflesia/ontology/ontology_column_data.rb', line 41

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @aggregations = (hash[:aggregations] || [])
  @allowed_values = (hash[:allowed_values] || [])
  @analysis_role = hash[:analysis_role]
  @coordinate_system = hash[:coordinate_system]
  @description = hash[:description]
  @examples = (hash[:examples] || [])
  @identifier_namespace = hash[:identifier_namespace]
  @is_nullable = hash[:is_nullable]
  @name = hash[:name]
  @null_meaning = hash[:null_meaning]
  @ordinal = hash[:ordinal]
  @type = hash[:type]
  @unit = hash[:unit]
  @value_kind = hash[:value_kind]
end

Instance Attribute Details

#aggregationsObject

Returns the value of attribute aggregations.



25
26
27
# File 'lib/rafflesia/ontology/ontology_column_data.rb', line 25

def aggregations
  @aggregations
end

#allowed_valuesObject

Returns the value of attribute allowed_values.



25
26
27
# File 'lib/rafflesia/ontology/ontology_column_data.rb', line 25

def allowed_values
  @allowed_values
end

#analysis_roleObject

Returns the value of attribute analysis_role.



25
26
27
# File 'lib/rafflesia/ontology/ontology_column_data.rb', line 25

def analysis_role
  @analysis_role
end

#coordinate_systemObject

Returns the value of attribute coordinate_system.



25
26
27
# File 'lib/rafflesia/ontology/ontology_column_data.rb', line 25

def coordinate_system
  @coordinate_system
end

#descriptionObject

Returns the value of attribute description.



25
26
27
# File 'lib/rafflesia/ontology/ontology_column_data.rb', line 25

def description
  @description
end

#examplesObject

Returns the value of attribute examples.



25
26
27
# File 'lib/rafflesia/ontology/ontology_column_data.rb', line 25

def examples
  @examples
end

#identifier_namespaceObject

Returns the value of attribute identifier_namespace.



25
26
27
# File 'lib/rafflesia/ontology/ontology_column_data.rb', line 25

def identifier_namespace
  @identifier_namespace
end

#is_nullableObject

Returns the value of attribute is_nullable.



25
26
27
# File 'lib/rafflesia/ontology/ontology_column_data.rb', line 25

def is_nullable
  @is_nullable
end

#nameObject

Returns the value of attribute name.



25
26
27
# File 'lib/rafflesia/ontology/ontology_column_data.rb', line 25

def name
  @name
end

#null_meaningObject

Returns the value of attribute null_meaning.



25
26
27
# File 'lib/rafflesia/ontology/ontology_column_data.rb', line 25

def null_meaning
  @null_meaning
end

#ordinalObject

Returns the value of attribute ordinal.



25
26
27
# File 'lib/rafflesia/ontology/ontology_column_data.rb', line 25

def ordinal
  @ordinal
end

#typeObject

Returns the value of attribute type.



25
26
27
# File 'lib/rafflesia/ontology/ontology_column_data.rb', line 25

def type
  @type
end

#unitObject

Returns the value of attribute unit.



25
26
27
# File 'lib/rafflesia/ontology/ontology_column_data.rb', line 25

def unit
  @unit
end

#value_kindObject

Returns the value of attribute value_kind.



25
26
27
# File 'lib/rafflesia/ontology/ontology_column_data.rb', line 25

def value_kind
  @value_kind
end