Class: OpenActive::Models::Schema::Thing

Inherits:
JsonLdModel show all
Defined in:
lib/openactive/models/schema/thing.rb

Instance Attribute Summary collapse

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_typeURI

Returns:

  • (URI)


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

def additional_type
  @additional_type
end

#alternate_nameString

Returns:

  • (String)


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

def alternate_name
  @alternate_name
end

#descriptionString

Returns:

  • (String)


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

def description
  @description
end

#disambiguating_descriptionString

Returns:

  • (String)


35
36
37
# File 'lib/openactive/models/schema/thing.rb', line 35

def disambiguating_description
  @disambiguating_description
end

#identifierOpenActive::Models::Schema::PropertyValue, ...



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

def identifier
  @identifier
end

#imageOpenActive::Models::Schema::ImageObject, URI



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

def image
  @image
end

#main_entity_of_pageURI, OpenActive::Models::Schema::CreativeWork



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

def main_entity_of_page
  @main_entity_of_page
end

#nameString

Returns:

  • (String)


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

def name
  @name
end

#potential_actionOpenActive::Models::Schema::Action



57
58
59
# File 'lib/openactive/models/schema/thing.rb', line 57

def potential_action
  @potential_action
end

#same_asURI

Returns:

  • (URI)


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

def same_as
  @same_as
end

#subject_ofOpenActive::Models::Schema::CreativeWork, OpenActive::Models::Schema::Event



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

def subject_of
  @subject_of
end

#typeString

Returns:

  • (String)


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

def type
  "schema:Thing"
end

#urlURI

Returns:

  • (URI)


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

def url
  @url
end