Class: HQMF2::AnyValue

Inherits:
Object
  • Object
show all
Defined in:
lib/hqmf-parser/2.0/types.rb

Overview

Used to represent ‘any value’ in criteria that require a value be present but don’t specify any restrictions on that value

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = 'ANYNonNull') ⇒ AnyValue

Returns a new instance of AnyValue.



7
8
9
# File 'lib/hqmf-parser/2.0/types.rb', line 7

def initialize(type='ANYNonNull')
  @type = type 
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'lib/hqmf-parser/2.0/types.rb', line 5

def type
  @type
end

Instance Method Details

#to_modelObject



11
12
13
# File 'lib/hqmf-parser/2.0/types.rb', line 11

def to_model
  HQMF::AnyValue.new(@type)
end