README.md in moodle_rb-1.1.3 vs README.md in moodle_rb-1.2.0
- old
+ new
@@ -26,11 +26,13 @@
```
moodle.courses.create(
:full_name => 'My Course',
:short_name => 'MyC',
:parent_category => 5,
- :idnumber => 'ExtRef'
+ :idnumber => 'ExtRef',
+ :startdate => 1646312400,
+ :enddate => 1646398800
)
```
List all courses
```
@@ -99,10 +101,12 @@
Create a teacher enrolment
```
moodle.enrolments.create(
:user_id => user_id,
:course_id => course_id,
- :role_id => 3
+ :role_id => 3,
+ :timestart=> 1646312400,
+ :timeend=> 1646398800
)
```
Delete an enrolment
```