Class: OpenActive::Models::Schema::QuantitativeValueDistribution

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

Direct Known Subclasses

MonetaryAmountDistribution

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

#durationActiveSupport::Duration?

Returns:

  • (ActiveSupport::Duration, nil)


24
25
26
# File 'lib/openactive/models/schema/quantitative_value_distribution.rb', line 24

def duration
  @duration
end

#medianBigDecimal?

Returns:

  • (BigDecimal, nil)


36
37
38
# File 'lib/openactive/models/schema/quantitative_value_distribution.rb', line 36

def median
  @median
end

#percentile10BigDecimal?

Returns:

  • (BigDecimal, nil)


30
31
32
# File 'lib/openactive/models/schema/quantitative_value_distribution.rb', line 30

def percentile10
  @percentile10
end

#percentile25BigDecimal?

Returns:

  • (BigDecimal, nil)


42
43
44
# File 'lib/openactive/models/schema/quantitative_value_distribution.rb', line 42

def percentile25
  @percentile25
end

#percentile75BigDecimal?

Returns:

  • (BigDecimal, nil)


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

def percentile75
  @percentile75
end

#percentile90BigDecimal?

Returns:

  • (BigDecimal, nil)


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

def percentile90
  @percentile90
end

#typeString

Returns:

  • (String)


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

def type
  "schema:QuantitativeValueDistribution"
end