Class: OpenActive::Models::Schema::SomeProducts

Inherits:
Product show all
Defined in:
lib/openactive/models/schema/some_products.rb

Instance Attribute Summary collapse

Attributes inherited from Product

#additional_property, #aggregate_rating, #audience, #award, #awards, #brand, #category, #color, #depth, #gtin, #gtin12, #gtin13, #gtin14, #gtin8, #has_product_return_policy, #height, #is_accessory_or_spare_part_for, #is_consumable_for, #is_related_to, #is_similar_to, #item_condition, #logo, #manufacturer, #material, #model, #mpn, #nsn, #offers, #product_id, #production_date, #purchase_date, #release_date, #review, #reviews, #sku, #slogan, #weight, #width

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

#inventory_levelOpenActive::Models::Schema::QuantitativeValue



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

def inventory_level
  @inventory_level
end

#typeString

Returns:

  • (String)


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

def type
  "schema:SomeProducts"
end