lib/openactive/models/schema/action.rb in openactive-0.3.0 vs lib/openactive/models/schema/action.rb in openactive-0.4.0

- old
+ new

@@ -6,86 +6,86 @@ # @return [String] def type "schema:Action" end - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :agent, as: "agent", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::PostalAddress,OpenActive::Models::Schema::Place,OpenActive::Models::Schema::VirtualLocation,String,URI] + define_property :location, as: "location", types: [ + "OpenActive::Models::Schema::PostalAddress", + "OpenActive::Models::Schema::Place", + "OpenActive::Models::Schema::VirtualLocation", + "string", "URI", ] - # @return [DateTime,Time,nil] - define_property :start_time, as: "startTime", types: [ - "DateTime", - "Time", - "null", + # @return [OpenActive::Models::Schema::Thing,URI] + define_property :object, as: "object", types: [ + "OpenActive::Models::Schema::Thing", + "URI", ] # @return [OpenActive::Models::Schema::ActionStatusType,URI] define_property :action_status, as: "actionStatus", types: [ "OpenActive::Models::Schema::ActionStatusType", "URI", ] # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :provider, as: "provider", types: [ + define_property :participant, as: "participant", types: [ "OpenActive::Models::Schema::Organization", "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::Thing,URI] - define_property :result, as: "result", types: [ - "OpenActive::Models::Schema::Thing", - "URI", + # @return [DateTime,Time,nil] + define_property :end_time, as: "endTime", types: [ + "DateTime", + "Time", + "null", ] - # @return [OpenActive::Models::Schema::PostalAddress,String,OpenActive::Models::Schema::Place,OpenActive::Models::Schema::VirtualLocation,URI] - define_property :location, as: "location", types: [ - "OpenActive::Models::Schema::PostalAddress", - "string", - "OpenActive::Models::Schema::Place", - "OpenActive::Models::Schema::VirtualLocation", - "URI", + # @return [DateTime,Time,nil] + define_property :start_time, as: "startTime", types: [ + "DateTime", + "Time", + "null", ] # @return [OpenActive::Models::Schema::Thing,URI] - define_property :object, as: "object", types: [ + define_property :error, as: "error", types: [ "OpenActive::Models::Schema::Thing", "URI", ] - # @return [OpenActive::Models::Schema::EntryPoint,URI] + # @return [URI,OpenActive::Models::Schema::EntryPoint] define_property :target, as: "target", types: [ - "OpenActive::Models::Schema::EntryPoint", "URI", + "OpenActive::Models::Schema::EntryPoint", ] - # @return [DateTime,Time,nil] - define_property :end_time, as: "endTime", types: [ - "DateTime", - "Time", - "null", - ] - - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :participant, as: "participant", types: [ - "OpenActive::Models::Schema::Organization", + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + define_property :provider, as: "provider", types: [ "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", "URI", ] # @return [OpenActive::Models::Schema::Thing,URI] define_property :instrument, as: "instrument", types: [ "OpenActive::Models::Schema::Thing", "URI", ] # @return [OpenActive::Models::Schema::Thing,URI] - define_property :error, as: "error", types: [ + define_property :result, as: "result", types: [ "OpenActive::Models::Schema::Thing", + "URI", + ] + + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + define_property :agent, as: "agent", types: [ + "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", "URI", ] end end end