Class: Rafflesia::OntologyColumnData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::OntologyColumnData
- 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
-
#aggregations ⇒ Object
Returns the value of attribute aggregations.
-
#allowed_values ⇒ Object
Returns the value of attribute allowed_values.
-
#analysis_role ⇒ Object
Returns the value of attribute analysis_role.
-
#coordinate_system ⇒ Object
Returns the value of attribute coordinate_system.
-
#description ⇒ Object
Returns the value of attribute description.
-
#examples ⇒ Object
Returns the value of attribute examples.
-
#identifier_namespace ⇒ Object
Returns the value of attribute identifier_namespace.
-
#is_nullable ⇒ Object
Returns the value of attribute is_nullable.
-
#name ⇒ Object
Returns the value of attribute name.
-
#null_meaning ⇒ Object
Returns the value of attribute null_meaning.
-
#ordinal ⇒ Object
Returns the value of attribute ordinal.
-
#type ⇒ Object
Returns the value of attribute type.
-
#unit ⇒ Object
Returns the value of attribute unit.
-
#value_kind ⇒ Object
Returns the value of attribute value_kind.
Instance Method Summary collapse
-
#initialize(json) ⇒ OntologyColumnData
constructor
A new instance of OntologyColumnData.
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
#aggregations ⇒ Object
Returns the value of attribute aggregations.
25 26 27 |
# File 'lib/rafflesia/ontology/ontology_column_data.rb', line 25 def aggregations @aggregations end |
#allowed_values ⇒ Object
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_role ⇒ Object
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_system ⇒ Object
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 |
#description ⇒ Object
Returns the value of attribute description.
25 26 27 |
# File 'lib/rafflesia/ontology/ontology_column_data.rb', line 25 def description @description end |
#examples ⇒ Object
Returns the value of attribute examples.
25 26 27 |
# File 'lib/rafflesia/ontology/ontology_column_data.rb', line 25 def examples @examples end |
#identifier_namespace ⇒ Object
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_nullable ⇒ Object
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 |
#name ⇒ Object
Returns the value of attribute name.
25 26 27 |
# File 'lib/rafflesia/ontology/ontology_column_data.rb', line 25 def name @name end |
#null_meaning ⇒ Object
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 |
#ordinal ⇒ Object
Returns the value of attribute ordinal.
25 26 27 |
# File 'lib/rafflesia/ontology/ontology_column_data.rb', line 25 def ordinal @ordinal end |
#type ⇒ Object
Returns the value of attribute type.
25 26 27 |
# File 'lib/rafflesia/ontology/ontology_column_data.rb', line 25 def type @type end |
#unit ⇒ Object
Returns the value of attribute unit.
25 26 27 |
# File 'lib/rafflesia/ontology/ontology_column_data.rb', line 25 def unit @unit end |
#value_kind ⇒ Object
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 |