Class: OpenActive::Models::Schema::Service

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

#aggregate_ratingOpenActive::Models::Schema::AggregateRating



72
73
74
# File 'lib/openactive/models/schema/service.rb', line 72

def aggregate_rating
  @aggregate_rating
end

#area_servedString, ...



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

def area_served
  @area_served
end

#audienceOpenActive::Models::Schema::Audience



51
52
53
# File 'lib/openactive/models/schema/service.rb', line 51

def audience
  @audience
end

#available_channelOpenActive::Models::Schema::ServiceChannel



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

def available_channel
  @available_channel
end

#awardString

Returns:

  • (String)


82
83
84
# File 'lib/openactive/models/schema/service.rb', line 82

def award
  @award
end

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



102
103
104
# File 'lib/openactive/models/schema/service.rb', line 102

def brand
  @brand
end

#brokerOpenActive::Models::Schema::Organization, OpenActive::Models::Schema::Person



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

def broker
  @broker
end

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



124
125
126
# File 'lib/openactive/models/schema/service.rb', line 124

def category
  @category
end

#has_offer_catalogOpenActive::Models::Schema::OfferCatalog



140
141
142
# File 'lib/openactive/models/schema/service.rb', line 140

def has_offer_catalog
  @has_offer_catalog
end

#hours_availableOpenActive::Models::Schema::OpeningHoursSpecification



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

def hours_available
  @hours_available
end


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

def is_related_to
  @is_related_to
end

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



45
46
47
# File 'lib/openactive/models/schema/service.rb', line 45

def is_similar_to
  @is_similar_to
end

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



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

def 
  @logo
end

#offersOpenActive::Models::Schema::Offer



130
131
132
# File 'lib/openactive/models/schema/service.rb', line 130

def offers
  @offers
end

#producesOpenActive::Models::Schema::Thing



40
41
42
# File 'lib/openactive/models/schema/service.rb', line 40

def produces
  @produces
end

#providerOpenActive::Models::Schema::Organization, OpenActive::Models::Schema::Person



118
119
120
# File 'lib/openactive/models/schema/service.rb', line 118

def provider
  @provider
end

#provider_mobilityString

Returns:

  • (String)


135
136
137
# File 'lib/openactive/models/schema/service.rb', line 135

def provider_mobility
  @provider_mobility
end

#reviewOpenActive::Models::Schema::Review



77
78
79
# File 'lib/openactive/models/schema/service.rb', line 77

def review
  @review
end

#service_areaOpenActive::Models::Schema::Place, ...



87
88
89
# File 'lib/openactive/models/schema/service.rb', line 87

def service_area
  @service_area
end

#service_audienceOpenActive::Models::Schema::Audience



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

def service_audience
  @service_audience
end

#service_outputOpenActive::Models::Schema::Thing



24
25
26
# File 'lib/openactive/models/schema/service.rb', line 24

def service_output
  @service_output
end

#service_typeString

Returns:

  • (String)


113
114
115
# File 'lib/openactive/models/schema/service.rb', line 113

def service_type
  @service_type
end

#sloganString

Returns:

  • (String)


108
109
110
# File 'lib/openactive/models/schema/service.rb', line 108

def slogan
  @slogan
end

#terms_of_serviceURI, String

Returns:

  • (URI, String)


18
19
20
# File 'lib/openactive/models/schema/service.rb', line 18

def terms_of_service
  @terms_of_service
end

#typeString

Returns:

  • (String)


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

def type
  "schema:Service"
end