Class: HQMF::Reference

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

Overview

Represents a HQMF reference from a precondition to a data criteria

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Conversion::Utilities

#build_hash, #check_equality, #json_array, #openstruct_to_json

Constructor Details

#initialize(id) ⇒ Reference

Create a new HQMF::Reference

Parameters:



315
316
317
# File 'lib/hqmf-model/types.rb', line 315

def initialize(id)
  @id = id
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



311
312
313
# File 'lib/hqmf-model/types.rb', line 311

def id
  @id
end

Instance Method Details

#==(other) ⇒ Object



323
324
325
# File 'lib/hqmf-model/types.rb', line 323

def ==(other)
  check_equality(self,other)
end

#to_jsonObject



319
320
321
# File 'lib/hqmf-model/types.rb', line 319

def to_json
  @id
end