Class: OpenActive::Models::Brand

Inherits:
Schema::Brand show all
Defined in:
lib/openactive/models/brand.rb

Overview

This type is derived from [Brand](schema.org/Brand), 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

Attributes inherited from Schema::Brand

#aggregate_rating, #review, #slogan

Attributes inherited from Schema::Thing

#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

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

#descriptionString

Returns:

  • (String)


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

def description
  @description
end

#identifierint, ...



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

def identifier
  @identifier
end

#logoOpenActive::Models::ImageObject



31
32
33
# File 'lib/openactive/models/brand.rb', line 31

def 
  @logo
end

#nameString

Returns:

  • (String)


21
22
23
# File 'lib/openactive/models/brand.rb', line 21

def name
  @name
end

#typeString

Returns:

  • (String)


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

def type
  "Brand"
end

#urlURI

Returns:

  • (URI)


36
37
38
# File 'lib/openactive/models/brand.rb', line 36

def url
  @url
end

#videoArray<OpenActive::Models::Schema::VideoObject>



41
42
43
# File 'lib/openactive/models/brand.rb', line 41

def video
  @video
end