Sha256: d123b85dab670a4096076b5d543057f7084aa01f183c07277fff238c795d8c73
Contents?: true
Size: 534 Bytes
Versions: 36
Compression:
Stored size: 534 Bytes
Contents
# frozen_string_literal: true module IronBank # Base class for Zuora operations, e.g., billing preview # class Operation private_class_method :new def self.call(args) new(args).call end def call IronBank.client.connection.post(endpoint, params).body end private attr_reader :args def initialize(args) @args = args end def endpoint "v1/operations/#{IronBank::Utils.kebab(name)}" end def name self.class.name.split("::").last end end end
Version data entries
36 entries across 36 versions & 1 rubygems