class HQMF::AnyValue

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

Attributes

type[R]

Public Class Methods

from_json(json) click to toggle source
# File lib/hqmf-model/types.rb, line 17
def self.from_json(json)
  type = json["type"] || 'ANYNonNull'
  HQMF::AnyValue.new(type)
end
new(type='ANYNonNull') click to toggle source
# File lib/hqmf-model/types.rb, line 9
def initialize(type='ANYNonNull')
  @type = type 
end

Public Instance Methods

derived?() click to toggle source
# File lib/hqmf-model/types.rb, line 13
def derived?
  false
end
to_json() click to toggle source
# File lib/hqmf-model/types.rb, line 22
def to_json
  hash = build_hash(self, [:type])
  hash
end