Sha256: 4d41a43218fadbceb8d1fb2e23a8926d8516617720ada81ccc6fab1ff8b3adad

Contents?: true

Size: 400 Bytes

Versions: 1

Compression:

Stored size: 400 Bytes

Contents

# frozen_string_literal: true

module Zuora
  module Soap
    class ZObject
      extend Forwardable

      attr_reader :type, :fields

      # @params [Symbol] - name of ZObject
      # @params [Hash] - a hash of fields
      def initialize(type, fields)
        @type = type
        @fields = fields
      end

      def_delegators :@fields, :each, :map, :reduce, :inspect, :to_i
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zuora-ruby-0.7.0 lib/zuora/soap/z_object.rb