class MarbleApiClient::Requests::Create

Request object for sending create requests. Uses context and record to send data that the service model can use in controllers

Public Class Methods

new(context: {}, record: {}) click to toggle source
# File lib/marble_api_client/requests/create.rb, line 18
def initialize(context: {}, record: {})
  @context = context
  @record = record
  freeze
end

Public Instance Methods

request_body() click to toggle source
# File lib/marble_api_client/requests/create.rb, line 24
def request_body
  {
    context: @context,
    record: @record
  }.to_json
end