Class: OpenActive::Models::Schema::MediaObject

Inherits:
CreativeWork show all
Defined in:
lib/openactive/models/schema/media_object.rb

Instance Attribute Summary collapse

Attributes inherited from CreativeWork

#about, #abstract, #access_mode, #access_mode_sufficient, #accessibility_api, #accessibility_control, #accessibility_feature, #accessibility_hazard, #accessibility_summary, #accountable_person, #aggregate_rating, #alternative_headline, #associated_media, #audience, #audio, #author, #award, #awards, #character, #citation, #comment, #comment_count, #conditions_of_access, #content_location, #content_rating, #content_reference_time, #contributor, #copyright_holder, #copyright_year, #correction, #creative_work_status, #creator, #date_created, #date_modified, #date_published, #discussion_url, #editor, #educational_alignment, #educational_use, #encoding, #encodings, #example_of_work, #expires, #file_format, #funder, #genre, #has_part, #headline, #in_language, #interaction_statistic, #interactivity_type, #is_accessible_for_free, #is_based_on, #is_based_on_url, #is_family_friendly, #is_part_of, #keywords, #learning_resource_type, #license, #location_created, #main_entity, #material, #material_extent, #mentions, #offers, #position, #producer, #provider, #publication, #publisher, #publishing_principles, #recorded_at, #released_event, #review, #reviews, #schema_version, #sd_date_published, #sd_license, #sd_publisher, #source_organization, #spatial, #spatial_coverage, #sponsor, #temporal, #temporal_coverage, #text, #thumbnail_url, #time_required, #translator, #typical_age_range, #version, #video, #work_example

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

#associated_articleOpenActive::Models::Schema::NewsArticle



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

def associated_article
  @associated_article
end

#bitrateString

Returns:

  • (String)


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

def bitrate
  @bitrate
end

#content_sizeString

Returns:

  • (String)


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

def content_size
  @content_size
end

#content_urlURI

Returns:

  • (URI)


46
47
48
# File 'lib/openactive/models/schema/media_object.rb', line 46

def content_url
  @content_url
end

#durationActiveSupport::Duration?

Returns:

  • (ActiveSupport::Duration, nil)


66
67
68
# File 'lib/openactive/models/schema/media_object.rb', line 66

def duration
  @duration
end

#embed_urlURI

Returns:

  • (URI)


23
24
25
# File 'lib/openactive/models/schema/media_object.rb', line 23

def embed_url
  @embed_url
end

#encodes_creative_workOpenActive::Models::Schema::CreativeWork



61
62
63
# File 'lib/openactive/models/schema/media_object.rb', line 61

def encodes_creative_work
  @encodes_creative_work
end

#encoding_formatString, URI

Returns:

  • (String, URI)


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

def encoding_format
  @encoding_format
end

#end_timeTime, ...

Returns:

  • (Time, DateTime, nil)


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

def end_time
  @end_time
end

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



96
97
98
# File 'lib/openactive/models/schema/media_object.rb', line 96

def height
  @height
end

#player_typeString

Returns:

  • (String)


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

def player_type
  @player_type
end

#production_companyOpenActive::Models::Schema::Organization



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

def production_company
  @production_company
end

#regions_allowedOpenActive::Models::Schema::Place



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

def regions_allowed
  @regions_allowed
end

#requires_subscriptionOpenActive::Models::Schema::MediaSubscription, ...



89
90
91
# File 'lib/openactive/models/schema/media_object.rb', line 89

def requires_subscription
  @requires_subscription
end

#start_timeTime, ...

Returns:

  • (Time, DateTime, nil)


28
29
30
# File 'lib/openactive/models/schema/media_object.rb', line 28

def start_time
  @start_time
end

#typeString

Returns:

  • (String)


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

def type
  "schema:MediaObject"
end

#upload_dateDate?

Returns:

  • (Date, nil)


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

def upload_date
  @upload_date
end

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



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

def width
  @width
end