lib/openactive/models/schema/educational_occupational_program.rb in openactive-0.2.2 vs lib/openactive/models/schema/educational_occupational_program.rb in openactive-0.3.0
- old
+ new
@@ -6,166 +6,166 @@
# @return [String]
def type
"schema:EducationalOccupationalProgram"
end
+ # @return [OpenActive::Models::Schema::AlignmentObject,OpenActive::Models::Schema::Course,OpenActive::Models::Schema::EducationalOccupationalCredential,String,URI]
+ define_property :program_prerequisites, as: "programPrerequisites", types: [
+ "OpenActive::Models::Schema::AlignmentObject",
+ "OpenActive::Models::Schema::Course",
+ "OpenActive::Models::Schema::EducationalOccupationalCredential",
+ "string",
+ "URI",
+ ]
+
# @return [OpenActive::Models::Schema::Course,URI]
define_property :has_course, as: "hasCourse", types: [
"OpenActive::Models::Schema::Course",
"URI",
]
- # @return [OpenActive::Models::Schema::DefinedTerm,String,URI]
- define_property :program_type, as: "programType", types: [
- "OpenActive::Models::Schema::DefinedTerm",
- "string",
- "URI",
+ # @return [DateTime,Date,nil]
+ define_property :start_date, as: "startDate", types: [
+ "DateTime",
+ "Date",
+ "null",
]
# @return [OpenActive::Models::Schema::MonetaryAmountDistribution,URI]
- define_property :training_salary, as: "trainingSalary", types: [
+ define_property :salary_upon_completion, as: "salaryUponCompletion", types: [
"OpenActive::Models::Schema::MonetaryAmountDistribution",
"URI",
]
- # @return [Date,nil]
- define_property :application_start_date, as: "applicationStartDate", types: [
- "Date",
+ # @return [BigDecimal,nil]
+ define_property :terms_per_year, as: "termsPerYear", types: [
+ "Number",
"null",
]
- # @return [OpenActive::Models::Schema::CategoryCode,String,URI]
- define_property :occupational_category, as: "occupationalCategory", types: [
- "OpenActive::Models::Schema::CategoryCode",
- "string",
- "URI",
+ # @return [OpenActive::Enums::Schema::DayOfWeek,nil]
+ define_property :day_of_week, as: "dayOfWeek", types: [
+ "OpenActive::Enums::Schema::DayOfWeek",
+ "null",
]
# @return [OpenActive::Models::Schema::Offer,OpenActive::Models::Schema::Demand,URI]
define_property :offers, as: "offers", types: [
"OpenActive::Models::Schema::Offer",
"OpenActive::Models::Schema::Demand",
"URI",
]
- # @return [DateTime,Date,nil]
- define_property :start_date, as: "startDate", types: [
- "DateTime",
+ # @return [int,OpenActive::Models::Schema::StructuredValue,URI,nil]
+ define_property :typical_credits_per_term, as: "typicalCreditsPerTerm", types: [
+ "int",
+ "OpenActive::Models::Schema::StructuredValue",
+ "URI",
+ "null",
+ ]
+
+ # @return [Date,nil]
+ define_property :application_start_date, as: "applicationStartDate", types: [
"Date",
"null",
]
+ # @return [String]
+ define_property :time_of_day, as: "timeOfDay", types: [
+ "string",
+ ]
+
+ # @return [Date,DateTime,nil]
+ define_property :end_date, as: "endDate", types: [
+ "Date",
+ "DateTime",
+ "null",
+ ]
+
# @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI]
define_property :provider, as: "provider", types: [
"OpenActive::Models::Schema::Organization",
"OpenActive::Models::Schema::Person",
"URI",
]
- # @return [BigDecimal,nil]
- define_property :terms_per_year, as: "termsPerYear", types: [
- "Number",
- "null",
- ]
-
# @return [OpenActive::Models::Schema::MonetaryAmountDistribution,URI]
- define_property :salary_upon_completion, as: "salaryUponCompletion", types: [
+ define_property :training_salary, as: "trainingSalary", types: [
"OpenActive::Models::Schema::MonetaryAmountDistribution",
"URI",
]
- # @return [URI,String,OpenActive::Models::Schema::EducationalOccupationalCredential]
- define_property :occupational_credential_awarded, as: "occupationalCredentialAwarded", types: [
+ # @return [URI,OpenActive::Models::Schema::EducationalOccupationalCredential,String]
+ define_property :educational_credential_awarded, as: "educationalCredentialAwarded", types: [
"URI",
- "string",
"OpenActive::Models::Schema::EducationalOccupationalCredential",
- ]
-
- # @return [OpenActive::Models::Schema::DefinedTerm,String,URI]
- define_property :financial_aid_eligible, as: "financialAidEligible", types: [
- "OpenActive::Models::Schema::DefinedTerm",
"string",
- "URI",
]
- # @return [OpenActive::Enums::Schema::DayOfWeek,nil]
- define_property :day_of_week, as: "dayOfWeek", types: [
- "OpenActive::Enums::Schema::DayOfWeek",
+ # @return [int,OpenActive::Models::Schema::StructuredValue,URI,nil]
+ define_property :number_of_credits, as: "numberOfCredits", types: [
+ "int",
+ "OpenActive::Models::Schema::StructuredValue",
+ "URI",
"null",
]
- # @return [Date,DateTime,nil]
- define_property :end_date, as: "endDate", types: [
- "Date",
- "DateTime",
+ # @return [ActiveSupport::Duration,URI,nil]
+ define_property :time_to_complete, as: "timeToComplete", types: [
+ "DateInterval",
+ "URI",
"null",
]
- # @return [String,URI]
- define_property :educational_program_mode, as: "educationalProgramMode", types: [
+ # @return [OpenActive::Models::Schema::EducationalOccupationalCredential,String,URI]
+ define_property :occupational_credential_awarded, as: "occupationalCredentialAwarded", types: [
+ "OpenActive::Models::Schema::EducationalOccupationalCredential",
"string",
"URI",
]
- # @return [int,nil]
- define_property :maximum_enrollment, as: "maximumEnrollment", types: [
- "int",
- "null",
- ]
-
# @return [ActiveSupport::Duration,URI,nil]
define_property :term_duration, as: "termDuration", types: [
"DateInterval",
"URI",
"null",
]
- # @return [Date,nil]
- define_property :application_deadline, as: "applicationDeadline", types: [
- "Date",
- "null",
- ]
-
- # @return [int,OpenActive::Models::Schema::StructuredValue,URI,nil]
- define_property :typical_credits_per_term, as: "typicalCreditsPerTerm", types: [
- "int",
- "OpenActive::Models::Schema::StructuredValue",
+ # @return [URI,String]
+ define_property :educational_program_mode, as: "educationalProgramMode", types: [
"URI",
- "null",
+ "string",
]
- # @return [ActiveSupport::Duration,URI,nil]
- define_property :time_to_complete, as: "timeToComplete", types: [
- "DateInterval",
+ # @return [String,OpenActive::Models::Schema::DefinedTerm,URI]
+ define_property :program_type, as: "programType", types: [
+ "string",
+ "OpenActive::Models::Schema::DefinedTerm",
"URI",
- "null",
]
- # @return [OpenActive::Models::Schema::StructuredValue,int,URI,nil]
- define_property :number_of_credits, as: "numberOfCredits", types: [
- "OpenActive::Models::Schema::StructuredValue",
+ # @return [int,nil]
+ define_property :maximum_enrollment, as: "maximumEnrollment", types: [
"int",
- "URI",
"null",
]
- # @return [String]
- define_property :time_of_day, as: "timeOfDay", types: [
+ # @return [String,OpenActive::Models::Schema::DefinedTerm,URI]
+ define_property :financial_aid_eligible, as: "financialAidEligible", types: [
"string",
+ "OpenActive::Models::Schema::DefinedTerm",
+ "URI",
]
- # @return [URI,String,OpenActive::Models::Schema::EducationalOccupationalCredential]
- define_property :educational_credential_awarded, as: "educationalCredentialAwarded", types: [
- "URI",
- "string",
- "OpenActive::Models::Schema::EducationalOccupationalCredential",
+ # @return [Date,nil]
+ define_property :application_deadline, as: "applicationDeadline", types: [
+ "Date",
+ "null",
]
- # @return [OpenActive::Models::Schema::Course,OpenActive::Models::Schema::AlignmentObject,OpenActive::Models::Schema::EducationalOccupationalCredential,String,URI]
- define_property :program_prerequisites, as: "programPrerequisites", types: [
- "OpenActive::Models::Schema::Course",
- "OpenActive::Models::Schema::AlignmentObject",
- "OpenActive::Models::Schema::EducationalOccupationalCredential",
+ # @return [OpenActive::Models::Schema::CategoryCode,String,URI]
+ define_property :occupational_category, as: "occupationalCategory", types: [
+ "OpenActive::Models::Schema::CategoryCode",
"string",
"URI",
]
end
end