Class: OpenActive::Models::Schema::Role

Inherits:
Intangible show all
Defined in:
lib/openactive/models/schema/role.rb

Direct Known Subclasses

LinkRole, OrganizationRole, PerformanceRole

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

#end_dateDate, ...

Returns:

  • (Date, DateTime, nil)


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

def end_date
  @end_date
end

#named_positionString, URI

Returns:

  • (String, URI)


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

def named_position
  @named_position
end

#role_nameURI, String

Returns:

  • (URI, String)


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

def role_name
  @role_name
end

#start_dateDateTime, ...

Returns:

  • (DateTime, Date, nil)


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

def start_date
  @start_date
end

#typeString

Returns:

  • (String)


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

def type
  "schema:Role"
end