Sha256: 209f9c360d9bca390122a2e872595811568cce7dc903d2677dd1cf2ef4df8dbe

Contents?: true

Size: 406 Bytes

Versions: 5

Compression:

Stored size: 406 Bytes

Contents

module PagseguroCatcher
  module Transaction
    
    class Sender < Transaction::Body
      
      def initialize(body)
        self.body = body[:sender]
      end
      
      def name
        self[:name]
      end
      
      def email
        self[:email]
      end
      
      def phone
        { :area => self[:phone][:areaCode], :number => self[:phone][:number] }
      end

    end
    
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pagseguro_catcher-0.1.3 lib/pagseguro_catcher/transaction/sender.rb
pagseguro_catcher-0.1.2 lib/pagseguro_catcher/transaction/sender.rb
pagseguro_catcher-0.1.1 lib/pagseguro_catcher/transaction/sender.rb
pagseguro_catcher-0.1.0 lib/pagseguro_catcher/transaction/sender.rb
pagseguro_catcher-0.0.4 lib/pagseguro_catcher/transaction/sender.rb