Class: OpenActive::Models::Schema::Product

Inherits:
Thing show all
Defined in:
lib/openactive/models/schema/product.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

#additional_propertyOpenActive::Models::Schema::PropertyValue



105
106
107
# File 'lib/openactive/models/schema/product.rb', line 105

def additional_property
  @additional_property
end

#aggregate_ratingOpenActive::Models::Schema::AggregateRating



62
63
64
# File 'lib/openactive/models/schema/product.rb', line 62

def aggregate_rating
  @aggregate_rating
end

#audienceOpenActive::Models::Schema::Audience



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

def audience
  @audience
end

#awardString

Returns:

  • (String)


83
84
85
# File 'lib/openactive/models/schema/product.rb', line 83

def award
  @award
end

#awardsString

Returns:

  • (String)


197
198
199
# File 'lib/openactive/models/schema/product.rb', line 197

def awards
  @awards
end

#brandOpenActive::Models::Schema::Brand, OpenActive::Models::Schema::Organization



186
187
188
# File 'lib/openactive/models/schema/product.rb', line 186

def brand
  @brand
end

#categoryString, OpenActive::Models::Schema::Thing



159
160
161
# File 'lib/openactive/models/schema/product.rb', line 159

def category
  @category
end

#colorString

Returns:

  • (String)


78
79
80
# File 'lib/openactive/models/schema/product.rb', line 78

def color
  @color
end

#depthOpenActive::Models::Schema::QuantitativeValue, OpenActive::Models::Schema::Distance



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

def depth
  @depth
end

#gtinString

Returns:

  • (String)


175
176
177
# File 'lib/openactive/models/schema/product.rb', line 175

def gtin
  @gtin
end

#gtin12String

Returns:

  • (String)


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

def gtin12
  @gtin12
end

#gtin13String

Returns:

  • (String)


127
128
129
# File 'lib/openactive/models/schema/product.rb', line 127

def gtin13
  @gtin13
end

#gtin14String

Returns:

  • (String)


192
193
194
# File 'lib/openactive/models/schema/product.rb', line 192

def gtin14
  @gtin14
end

#gtin8String

Returns:

  • (String)


207
208
209
# File 'lib/openactive/models/schema/product.rb', line 207

def gtin8
  @gtin8
end

#has_product_return_policyOpenActive::Models::Schema::ProductReturnPolicy



17
18
19
# File 'lib/openactive/models/schema/product.rb', line 17

def has_product_return_policy
  @has_product_return_policy
end

#heightOpenActive::Models::Schema::QuantitativeValue, OpenActive::Models::Schema::Distance



50
51
52
# File 'lib/openactive/models/schema/product.rb', line 50

def height
  @height
end

#is_accessory_or_spare_part_forOpenActive::Models::Schema::Product



165
166
167
# File 'lib/openactive/models/schema/product.rb', line 165

def is_accessory_or_spare_part_for
  @is_accessory_or_spare_part_for
end

#is_consumable_forOpenActive::Models::Schema::Product



149
150
151
# File 'lib/openactive/models/schema/product.rb', line 149

def is_consumable_for
  @is_consumable_for
end


88
89
90
# File 'lib/openactive/models/schema/product.rb', line 88

def is_related_to
  @is_related_to
end

#is_similar_toOpenActive::Models::Schema::Service, OpenActive::Models::Schema::Product



56
57
58
# File 'lib/openactive/models/schema/product.rb', line 56

def is_similar_to
  @is_similar_to
end

#item_conditionOpenActive::Enums::Schema::OfferItemCondition?



132
133
134
# File 'lib/openactive/models/schema/product.rb', line 132

def item_condition
  @item_condition
end

#logoOpenActive::Models::Schema::ImageObject, URI



115
116
117
# File 'lib/openactive/models/schema/product.rb', line 115

def 
  @logo
end

#manufacturerOpenActive::Models::Schema::Organization



29
30
31
# File 'lib/openactive/models/schema/product.rb', line 29

def manufacturer
  @manufacturer
end

#materialURI, ...

Returns:



22
23
24
# File 'lib/openactive/models/schema/product.rb', line 22

def material
  @material
end

#modelOpenActive::Models::Schema::ProductModel, String



67
68
69
# File 'lib/openactive/models/schema/product.rb', line 67

def model
  @model
end

#mpnString

Returns:

  • (String)


138
139
140
# File 'lib/openactive/models/schema/product.rb', line 138

def mpn
  @mpn
end

#nsnString

Returns:

  • (String)


170
171
172
# File 'lib/openactive/models/schema/product.rb', line 170

def nsn
  @nsn
end

#offersOpenActive::Models::Schema::Offer



202
203
204
# File 'lib/openactive/models/schema/product.rb', line 202

def offers
  @offers
end

#product_idString

Returns:

  • (String)


100
101
102
# File 'lib/openactive/models/schema/product.rb', line 100

def product_id
  @product_id
end

#production_dateDate?

Returns:

  • (Date, nil)


143
144
145
# File 'lib/openactive/models/schema/product.rb', line 143

def production_date
  @production_date
end

#purchase_dateDate?

Returns:

  • (Date, nil)


121
122
123
# File 'lib/openactive/models/schema/product.rb', line 121

def purchase_date
  @purchase_date
end

#release_dateDate?

Returns:

  • (Date, nil)


180
181
182
# File 'lib/openactive/models/schema/product.rb', line 180

def release_date
  @release_date
end

#reviewOpenActive::Models::Schema::Review



110
111
112
# File 'lib/openactive/models/schema/product.rb', line 110

def review
  @review
end

#reviewsOpenActive::Models::Schema::Review



73
74
75
# File 'lib/openactive/models/schema/product.rb', line 73

def reviews
  @reviews
end

#skuString

Returns:

  • (String)


212
213
214
# File 'lib/openactive/models/schema/product.rb', line 212

def sku
  @sku
end

#sloganString

Returns:

  • (String)


154
155
156
# File 'lib/openactive/models/schema/product.rb', line 154

def slogan
  @slogan
end

#typeString

Returns:

  • (String)


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

def type
  "schema:Product"
end

#weightOpenActive::Models::Schema::QuantitativeValue



34
35
36
# File 'lib/openactive/models/schema/product.rb', line 34

def weight
  @weight
end

#widthOpenActive::Models::Schema::Distance, OpenActive::Models::Schema::QuantitativeValue



94
95
96
# File 'lib/openactive/models/schema/product.rb', line 94

def width
  @width
end