Class: SimpleXml::TypedReference

Inherits:
Object
  • Object
show all
Includes:
Utilities
Defined in:
lib/model/types.rb

Overview

Represents a HQMF reference from a precondition to a data criteria

Constant Summary

Constants included from Utilities

Utilities::MEASURE_ATTRIBUTES_MAP

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utilities

#attr_val, attr_val, build_value, #children_of, #comments_on, #create_age_timing, #create_birthdate_criteria

Constructor Details

#initialize(id, type, mood) ⇒ TypedReference

Returns a new instance of TypedReference.



215
216
217
218
219
# File 'lib/model/types.rb', line 215

def initialize(id,type,mood)
  @id = id
  @type = type
  @mood = mood
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



213
214
215
# File 'lib/model/types.rb', line 213

def id
  @id
end

#moodObject

Returns the value of attribute mood.



213
214
215
# File 'lib/model/types.rb', line 213

def mood
  @mood
end

#typeObject

Returns the value of attribute type.



213
214
215
# File 'lib/model/types.rb', line 213

def type
  @type
end

Instance Method Details

#to_modelObject



221
222
223
# File 'lib/model/types.rb', line 221

def to_model
  HQMF::TypedReference.new(@id,@type,@mood)
end