Class: Redox::Request::Notes

Inherits:
Object
  • Object
show all
Defined in:
lib/redox/request/notes.rb

Constant Summary collapse

CREATE_META =
Redox::Models::Meta.new(EventType: 'New', DataModel: 'Notes')

Class Method Summary collapse

Class Method Details

.create(model, meta: Redox::Models::Meta.new) ⇒ Object



6
7
8
9
# File 'lib/redox/request/notes.rb', line 6

def self.create(model, meta: Redox::Models::Meta.new)
  meta = CREATE_META.merge(meta)
  return Redox::Models::Model.from_response((RedoxClient.connection.request(body: Redox::Request.build_body(model, meta))))
end