Class: OpenActive::Models::Schema::PriceSpecification

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

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

#eligible_quantityOpenActive::Models::Schema::QuantitativeValue



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

def eligible_quantity
  @eligible_quantity
end

#eligible_transaction_volumeOpenActive::Models::Schema::PriceSpecification



55
56
57
# File 'lib/openactive/models/schema/price_specification.rb', line 55

def eligible_transaction_volume
  @eligible_transaction_volume
end

#max_priceBigDecimal?

Returns:

  • (BigDecimal, nil)


49
50
51
# File 'lib/openactive/models/schema/price_specification.rb', line 49

def max_price
  @max_price
end

#min_priceBigDecimal?

Returns:

  • (BigDecimal, nil)


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

def min_price
  @min_price
end

#priceString, ...

Returns:

  • (String, BigDecimal, nil)


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

def price
  @price
end

#price_currencyString

Returns:

  • (String)


44
45
46
# File 'lib/openactive/models/schema/price_specification.rb', line 44

def price_currency
  @price_currency
end

#typeString

Returns:

  • (String)


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

def type
  "schema:PriceSpecification"
end

#valid_fromDateTime, ...

Returns:

  • (DateTime, Date, nil)


32
33
34
# File 'lib/openactive/models/schema/price_specification.rb', line 32

def valid_from
  @valid_from
end

#valid_throughDate, ...

Returns:

  • (Date, DateTime, nil)


25
26
27
# File 'lib/openactive/models/schema/price_specification.rb', line 25

def valid_through
  @valid_through
end

#value_added_tax_includedBoolean?

Returns:

  • (Boolean, nil)


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

def value_added_tax_included
  @value_added_tax_included
end