Sha256: 117fec7eb0d50a21f9c8881e612ff6cbc61ac5e8b751d86b00b4a5b4c4ca8b2c

Contents?: true

Size: 1.9 KB

Versions: 4

Compression:

Stored size: 1.9 KB

Contents

module OpenActive
  module Models
    module Schema
      class ExerciseAction < ::OpenActive::Models::Schema::PlayAction
        # @!attribute type
        # @return [String]
        def type
          "schema:ExerciseAction"
        end

        # @return [OpenActive::Models::Schema::Place]
        define_property :exercise_course, as: "exerciseCourse", types: [
          "OpenActive::Models::Schema::Place",
        ]

        # @return [OpenActive::Models::Schema::Place]
        define_property :from_location, as: "fromLocation", types: [
          "OpenActive::Models::Schema::Place",
        ]

        # @return [OpenActive::Models::Schema::Place]
        define_property :to_location, as: "toLocation", types: [
          "OpenActive::Models::Schema::Place",
        ]

        # @return [OpenActive::Models::Schema::SportsActivityLocation]
        define_property :sports_activity_location, as: "sportsActivityLocation", types: [
          "OpenActive::Models::Schema::SportsActivityLocation",
        ]

        # @return [OpenActive::Models::Schema::Person]
        define_property :opponent, as: "opponent", types: [
          "OpenActive::Models::Schema::Person",
        ]

        # @return [OpenActive::Models::Schema::Distance]
        define_property :distance, as: "distance", types: [
          "OpenActive::Models::Schema::Distance",
        ]

        # @return [OpenActive::Models::Schema::SportsEvent]
        define_property :sports_event, as: "sportsEvent", types: [
          "OpenActive::Models::Schema::SportsEvent",
        ]

        # @return [OpenActive::Models::Schema::SportsTeam]
        define_property :sports_team, as: "sportsTeam", types: [
          "OpenActive::Models::Schema::SportsTeam",
        ]

        # @return [OpenActive::Models::Schema::Place]
        define_property :course, as: "course", types: [
          "OpenActive::Models::Schema::Place",
        ]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
openactive-0.1.2 lib/openactive/models/schema/exercise_action.rb
openactive-0.1.1 lib/openactive/models/schema/exercise_action.rb
openactive-0.1.0 lib/openactive/models/schema/exercise_action.rb
openactive-0.1.0.rc1 lib/openactive/models/schema/exercise_action.rb