Class: OpenActive::Models::Schema::Action

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

#action_statusOpenActive::Enums::Schema::ActionStatusType?



70
71
72
# File 'lib/openactive/models/schema/action.rb', line 70

def action_status
  @action_status
end

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



59
60
61
# File 'lib/openactive/models/schema/action.rb', line 59

def agent
  @agent
end

#end_timeTime, ...

Returns:

  • (Time, DateTime, nil)


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

def end_time
  @end_time
end

#errorOpenActive::Models::Schema::Thing



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

def error
  @error
end

#instrumentOpenActive::Models::Schema::Thing



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

def instrument
  @instrument
end

#locationOpenActive::Models::Schema::Place, ...



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

def location
  @location
end

#objectOpenActive::Models::Schema::Thing



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

def object
  @object
end

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



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

def participant
  @participant
end

#resultOpenActive::Models::Schema::Thing



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

def result
  @result
end

#start_timeTime, ...

Returns:

  • (Time, DateTime, nil)


52
53
54
# File 'lib/openactive/models/schema/action.rb', line 52

def start_time
  @start_time
end

#targetOpenActive::Models::Schema::EntryPoint



65
66
67
# File 'lib/openactive/models/schema/action.rb', line 65

def target
  @target
end

#typeString

Returns:

  • (String)


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

def type
  "schema:Action"
end