Sha256: 375f9f2c9a65632741e62957dea2cf928193977b6c2c4c9c50b302520c305efc
Contents?: true
Size: 831 Bytes
Versions: 5
Compression:
Stored size: 831 Bytes
Contents
# frozen_string_literal: true module Tikkie module Api module Requests # Platforms operations at Tikkie. class Platforms def initialize(request) @request = request end def list response = @request.get("/tikkie/platforms") Tikkie::Api::Responses::Platforms.new(response) end def create(options = {}) params = { name: options.fetch(:name), phoneNumber: options.fetch(:phone_number), platformUsage: options.fetch(:platform_usage), email: options[:email], notificationUrl: options[:notification_url] } response = @request.post("/tikkie/platforms", params) Tikkie::Api::Responses::Platform.new(response) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems