Class: Rafflesia::OntologyContextColumn

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

Constant Summary collapse

HASH_ATTRS =
{
  coordinate_system: :coordinate_system,
  description: :description,
  identifier_namespace: :identifier_namespace,
  is_nullable: :is_nullable,
  is_required: :is_required,
  is_search_match: :is_search_match,
  name: :name,
  type: :type,
  unit: :unit,
  value_kind: :value_kind
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ OntologyContextColumn

Returns a new instance of OntologyContextColumn.



33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/rafflesia/ontology/ontology_context_column.rb', line 33

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @coordinate_system = hash[:coordinate_system]
  @description = hash[:description]
  @identifier_namespace = hash[:identifier_namespace]
  @is_nullable = hash[:is_nullable]
  @is_required = hash[:is_required]
  @is_search_match = hash[:is_search_match]
  @name = hash[:name]
  @type = hash[:type]
  @unit = hash[:unit]
  @value_kind = hash[:value_kind]
end

Instance Attribute Details

#coordinate_systemObject

Returns the value of attribute coordinate_system.



21
22
23
# File 'lib/rafflesia/ontology/ontology_context_column.rb', line 21

def coordinate_system
  @coordinate_system
end

#descriptionObject

Returns the value of attribute description.



21
22
23
# File 'lib/rafflesia/ontology/ontology_context_column.rb', line 21

def description
  @description
end

#identifier_namespaceObject

Returns the value of attribute identifier_namespace.



21
22
23
# File 'lib/rafflesia/ontology/ontology_context_column.rb', line 21

def identifier_namespace
  @identifier_namespace
end

#is_nullableObject

Returns the value of attribute is_nullable.



21
22
23
# File 'lib/rafflesia/ontology/ontology_context_column.rb', line 21

def is_nullable
  @is_nullable
end

#is_requiredObject

Returns the value of attribute is_required.



21
22
23
# File 'lib/rafflesia/ontology/ontology_context_column.rb', line 21

def is_required
  @is_required
end

#is_search_matchObject

Returns the value of attribute is_search_match.



21
22
23
# File 'lib/rafflesia/ontology/ontology_context_column.rb', line 21

def is_search_match
  @is_search_match
end

#nameObject

Returns the value of attribute name.



21
22
23
# File 'lib/rafflesia/ontology/ontology_context_column.rb', line 21

def name
  @name
end

#typeObject

Returns the value of attribute type.



21
22
23
# File 'lib/rafflesia/ontology/ontology_context_column.rb', line 21

def type
  @type
end

#unitObject

Returns the value of attribute unit.



21
22
23
# File 'lib/rafflesia/ontology/ontology_context_column.rb', line 21

def unit
  @unit
end

#value_kindObject

Returns the value of attribute value_kind.



21
22
23
# File 'lib/rafflesia/ontology/ontology_context_column.rb', line 21

def value_kind
  @value_kind
end