Class: Redox::Request::Scheduling
- Inherits:
-
Object
- Object
- Redox::Request::Scheduling
- Defined in:
- lib/redox/request/scheduling.rb
Constant Summary collapse
- CREATE_META =
Redox::Models::Meta.new(EventType: 'New', DataModel: 'Scheduling')
- CANCEL_META =
Redox::Models::Meta.new(EventType: 'Cancel', DataModel: 'Scheduling')
- RESCHEDULE_META =
Redox::Models::Meta.new(EventType: 'Reschedule', DataModel: 'Scheduling')
- MODIFICATION_META =
Redox::Models::Meta.new(EventType: 'Modification', DataModel: 'Scheduling')
Class Method Summary collapse
- .cancel(model, meta: Redox::Models::Meta.new) ⇒ Object
- .create(model, meta: Redox::Models::Meta.new) ⇒ Object
- .modification(model, meta: Redox::Models::Meta.new) ⇒ Object
- .reschedule(model, meta: Redox::Models::Meta.new) ⇒ Object
Class Method Details
.cancel(model, meta: Redox::Models::Meta.new) ⇒ Object
14 15 16 17 |
# File 'lib/redox/request/scheduling.rb', line 14 def self.cancel(model, meta: Redox::Models::Meta.new) = CANCEL_META.merge() return Redox::Models::Model.from_response((RedoxClient.connection.request(body: Redox::Request.build_body(model, )))) end |
.create(model, meta: Redox::Models::Meta.new) ⇒ Object
9 10 11 12 |
# File 'lib/redox/request/scheduling.rb', line 9 def self.create(model, meta: Redox::Models::Meta.new) = CREATE_META.merge() return Redox::Models::Model.from_response((RedoxClient.connection.request(body: Redox::Request.build_body(model, )))) end |
.modification(model, meta: Redox::Models::Meta.new) ⇒ Object
24 25 26 27 |
# File 'lib/redox/request/scheduling.rb', line 24 def self.modification(model, meta: Redox::Models::Meta.new) = MODIFICATION_META.merge() return Redox::Models::Model.from_response((RedoxClient.connection.request(body: Redox::Request.build_body(model, )))) end |
.reschedule(model, meta: Redox::Models::Meta.new) ⇒ Object
19 20 21 22 |
# File 'lib/redox/request/scheduling.rb', line 19 def self.reschedule(model, meta: Redox::Models::Meta.new) = RESCHEDULE_META.merge() return Redox::Models::Model.from_response((RedoxClient.connection.request(body: Redox::Request.build_body(model, )))) end |