Class: OpenActive::Models::Schema::AggregateOffer

Inherits:
Offer show all
Defined in:
lib/openactive/models/schema/aggregate_offer.rb

Instance Attribute Summary collapse

Attributes inherited from Offer

#accepted_payment_method, #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, #price_currency, #price_specification, #price_valid_until, #review, #reviews, #seller, #serial_number, #sku, #valid_from, #valid_through, #warranty

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

#high_priceBigDecimal, ...

Returns:

  • (BigDecimal, String, nil)


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

def high_price
  @high_price
end

#low_priceString, ...

Returns:

  • (String, BigDecimal, nil)


19
20
21
# File 'lib/openactive/models/schema/aggregate_offer.rb', line 19

def low_price
  @low_price
end

#offer_countint?

Returns:

  • (int, nil)


26
27
28
# File 'lib/openactive/models/schema/aggregate_offer.rb', line 26

def offer_count
  @offer_count
end

#offersOpenActive::Models::Schema::Offer



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

def offers
  @offers
end

#typeString

Returns:

  • (String)


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

def type
  "schema:AggregateOffer"
end