Sha256: 49b5fad99cd643bc10b3acebce14f40c2478eee188135b0d1939e0080328f674

Contents?: true

Size: 369 Bytes

Versions: 2

Compression:

Stored size: 369 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
zuora-ruby-0.6.0 lib/zuora/soap/z_object.rb
zuora-ruby-0.5.0 lib/zuora/soap/z_object.rb