Class: HQMF::AnyValue
- Inherits:
-
Object
- Object
- HQMF::AnyValue
- Includes:
- Conversion::Utilities
- Defined in:
- lib/hqmf-model/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
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
- #derived? ⇒ Boolean
-
#initialize(type = 'ANYNonNull') ⇒ AnyValue
constructor
A new instance of AnyValue.
- #to_json ⇒ Object
Methods included from Conversion::Utilities
#build_hash, #check_equality, #json_array, #openstruct_to_json
Constructor Details
#initialize(type = 'ANYNonNull') ⇒ AnyValue
Returns a new instance of AnyValue.
9 10 11 |
# File 'lib/hqmf-model/types.rb', line 9 def initialize(type='ANYNonNull') @type = type end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
7 8 9 |
# File 'lib/hqmf-model/types.rb', line 7 def type @type end |
Class Method Details
Instance Method Details
#derived? ⇒ Boolean
13 14 15 |
# File 'lib/hqmf-model/types.rb', line 13 def derived? false end |
#to_json ⇒ Object
22 23 24 25 |
# File 'lib/hqmf-model/types.rb', line 22 def to_json hash = build_hash(self, [:type]) hash end |