Class: OpenActive::Models::Offer
Overview
This type is derived from [Offer](schema.org/Offer), which means that any of this type’s properties within schema.org may also be used. Note however the properties on this page must be used in preference if a relevant property is available.
Instance Attribute Summary collapse
#add_on, #advance_booking_requirement, #aggregate_rating, #area_served, #availability, #availability_ends, #availability_starts, #available_at_or_from, #available_delivery_method, #business_function, #category, #delivery_lead_time, #eligible_customer_type, #eligible_duration, #eligible_quantity, #eligible_region, #eligible_transaction_volume, #gtin, #gtin12, #gtin13, #gtin14, #gtin8, #includes_object, #ineligible_region, #inventory_level, #item_condition, #item_offered, #mpn, #offered_by, #price_specification, #price_valid_until, #review, #reviews, #seller, #serial_number, #sku, #valid_from, #valid_through, #warranty
#additional_type, #alternate_name, #disambiguating_description, #image, #main_entity_of_page, #potential_action, #same_as, #subject_of
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
#check_types, included
included, #to_h, #values
Instance Attribute Details
31
32
33
|
# File 'lib/openactive/models/offer.rb', line 31
def accepted_payment_method
@accepted_payment_method
end
|
37
38
39
|
# File 'lib/openactive/models/offer.rb', line 37
def advance_booking
@advance_booking
end
|
43
44
45
|
# File 'lib/openactive/models/offer.rb', line 43
def age_range
@age_range
end
|
88
89
90
|
# File 'lib/openactive/models/offer.rb', line 88
def available_channel
@available_channel
end
|
#description ⇒ String
26
27
28
|
# File 'lib/openactive/models/offer.rb', line 26
def description
@description
end
|
#identifier ⇒ int, ...
12
13
14
|
# File 'lib/openactive/models/offer.rb', line 12
def identifier
@identifier
end
|
#latest_cancellation_before_start_date ⇒ ActiveSupport::Duration?
48
49
50
|
# File 'lib/openactive/models/offer.rb', line 48
def latest_cancellation_before_start_date
@latest_cancellation_before_start_date
end
|
#name ⇒ String
21
22
23
|
# File 'lib/openactive/models/offer.rb', line 21
def name
@name
end
|
54
55
56
|
# File 'lib/openactive/models/offer.rb', line 54
def open_booking_flow_requirement
@open_booking_flow_requirement
end
|
60
61
62
|
# File 'lib/openactive/models/offer.rb', line 60
def prepayment
@prepayment
end
|
#price ⇒ BigDecimal?
66
67
68
|
# File 'lib/openactive/models/offer.rb', line 66
def price
@price
end
|
#price_currency ⇒ String
72
73
74
|
# File 'lib/openactive/models/offer.rb', line 72
def price_currency
@price_currency
end
|
#type ⇒ String
7
8
9
|
# File 'lib/openactive/models/offer.rb', line 7
def type
"Offer"
end
|
#url ⇒ URI
77
78
79
|
# File 'lib/openactive/models/offer.rb', line 77
def url
@url
end
|
#valid_from_before_start_date ⇒ ActiveSupport::Duration?
82
83
84
|
# File 'lib/openactive/models/offer.rb', line 82
def valid_from_before_start_date
@valid_from_before_start_date
end
|