Sha256: aecda167e6c96260c8136a62371f78ffc81e8a7945f195c74811d73d7fa23037

Contents?: true

Size: 219 Bytes

Versions: 5

Compression:

Stored size: 219 Bytes

Contents

module PagSeguro
  class Sessions < Base
    def create
      response = api.post "/v2/sessions" do |conn|
        conn.headers[:accept] = FORMATS[:xml]
      end

      parse response.body["session"]
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pagseguro_next-0.4.0 lib/pagseguro/sessions.rb
pagseguro_next-0.3.0 lib/pagseguro/sessions.rb
pagseguro_next-0.2.0 lib/pagseguro/sessions.rb
pagseguro_next-0.1.1 lib/pagseguro/sessions.rb
pagseguro_next-0.1.0 lib/pagseguro/sessions.rb