Class: OpenActive::Models::Schema::PropertyValue

Inherits:
StructuredValue show all
Defined in:
lib/openactive/models/schema/property_value.rb

Direct Known Subclasses

PropertyValue, LocationFeatureSpecification

Instance Attribute Summary collapse

Attributes inherited from Thing

#additional_type, #alternate_name, #description, #disambiguating_description, #identifier, #image, #main_entity_of_page, #name, #potential_action, #same_as, #subject_of, #url

Attributes inherited from JsonLdModel

#context, #id

Method Summary

Methods inherited from BaseModel

#assign_attributes, define_property, deserialize, #deserialize, deserialize_class, #initialize, #serialize, serialize, #set_property, #to_json

Methods included from Concerns::TypeChecker

#check_types, included

Methods included from Concerns::JsonLdSerializable

included, #to_h, #values

Constructor Details

This class inherits a constructor from OpenActive::BaseModel

Instance Attribute Details

#max_valueBigDecimal?

Returns:

  • (BigDecimal, nil)


23
24
25
# File 'lib/openactive/models/schema/property_value.rb', line 23

def max_value
  @max_value
end

#measurement_techniqueString, URI

Returns:

  • (String, URI)


12
13
14
# File 'lib/openactive/models/schema/property_value.rb', line 12

def measurement_technique
  @measurement_technique
end

#min_valueBigDecimal?

Returns:

  • (BigDecimal, nil)


54
55
56
# File 'lib/openactive/models/schema/property_value.rb', line 54

def min_value
  @min_value
end

#property_idString, URI

Returns:

  • (String, URI)


48
49
50
# File 'lib/openactive/models/schema/property_value.rb', line 48

def property_id
  @property_id
end

#typeString

Returns:

  • (String)


7
8
9
# File 'lib/openactive/models/schema/property_value.rb', line 7

def type
  "schema:PropertyValue"
end

#unit_codeString, URI

Returns:

  • (String, URI)


60
61
62
# File 'lib/openactive/models/schema/property_value.rb', line 60

def unit_code
  @unit_code
end

#unit_textString

Returns:

  • (String)


18
19
20
# File 'lib/openactive/models/schema/property_value.rb', line 18

def unit_text
  @unit_text
end

#valueOpenActive::Models::Schema::StructuredValue, ...

Returns:



39
40
41
# File 'lib/openactive/models/schema/property_value.rb', line 39

def value
  @value
end

#value_referenceOpenActive::Models::Schema::Enumeration, ...



29
30
31
# File 'lib/openactive/models/schema/property_value.rb', line 29

def value_reference
  @value_reference
end