class HQMF::TypedReference

Represents a HQMF reference from a precondition to a data criteria

Attributes

mood[RW]
reference[RW]
type[RW]

Public Class Methods

from_json(json) click to toggle source
# File lib/hqmf-model/types.rb, line 317
def self.from_json(json)
  type = json["type"] 
  reference = json["reference"]
  mood = json["mood"]
  new(reference,type,mood)
end
new(reference,type,mood=nil) click to toggle source

Create a new HQMF::Reference @param [String] id

# File lib/hqmf-model/types.rb, line 311
def initialize(reference,type,mood=nil)
  @reference = reference
  @type = type
  @mood = mood
end

Public Instance Methods

==(other) click to toggle source
# File lib/hqmf-model/types.rb, line 328
def ==(other)
  check_equality(self,other)
end
to_json() click to toggle source
# File lib/hqmf-model/types.rb, line 324
def to_json
  build_hash(self, [:type, :reference,:mood])
end