Sha256: 04a9352139a48ea71939ee330c3c5339a8f700c5b5785e10f275b653e78b9df6

Contents?: true

Size: 345 Bytes

Versions: 21

Compression:

Stored size: 345 Bytes

Contents

module PagSeguro
  class Transaction
    class Shipping
      attr_reader :shipping

      def initialize(shipping)
        @shipping = shipping
      end

      def address
        Address.new(shipping['address'])
      end

      def type
        shipping['type']
      end

      def cost
        shipping['cost']
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
pagseguro-transparente-1.1.0 lib/pagseguro/transaction/shipping.rb
pagseguro-transparente-1.0.1 lib/pagseguro/transaction/shipping.rb
pagseguro-transparente-1.0.0 lib/pagseguro/transaction/shipping.rb
pagseguro-transparente-0.2.5 lib/pagseguro/transaction/shipping.rb
pagseguro-transparente-0.2.4 lib/pagseguro/transaction/shipping.rb
pagseguro-transparente-0.2.3 lib/pagseguro/transaction/shipping.rb
pagseguro-transparente-0.2.2 lib/pagseguro/transaction/shipping.rb
pagseguro-transparente-0.2.1 lib/pagseguro/transaction/shipping.rb
pagseguro-transparente-0.2.0 lib/pagseguro/transaction/shipping.rb
pagseguro-transparente-0.1.3 lib/pagseguro/transaction/shipping.rb
pagseguro-transparente-0.1.2 lib/pagseguro/transaction/shipping.rb
pagseguro-transparente-0.1.1 lib/pagseguro/transaction/shipping.rb
pagseguro-transparente-0.1.0 lib/pagseguro/transaction/shipping.rb
pagseguro-transparente-0.0.9 lib/pagseguro/transaction/shipping.rb
pagseguro-transparente-0.0.8 lib/pagseguro/transaction/shipping.rb
pagseguro-transparente-0.0.7 lib/pagseguro/transaction/shipping.rb
pagseguro-transparente-0.0.6 lib/pagseguro/transaction/shipping.rb
pagseguro-transparente-0.0.5 lib/pagseguro/transaction/shipping.rb
pagseguro-transparente-0.0.4 lib/pagseguro/transaction/shipping.rb
pagseguro-transparente-0.0.3 lib/pagseguro/transaction/shipping.rb