Sha256: ef8f441b3d97079346962e61bf015342537da3597fafe2c8151ef118b18f0450
Contents?: true
Size: 497 Bytes
Versions: 5
Compression:
Stored size: 497 Bytes
Contents
require "nokogiri" module PagSeguro class Base attr_reader :api def initialize(api) @api = api end def parse(hash) Response.new(hash) end def parse_body(response) parse response.body end def parameterize(hash) hash.as_json.deep_transform_keys! do |key| key.to_s.camelize(:lower) end end def builder(&block) Nokogiri::XML::Builder.new do |xml| xml.instance_eval(&block) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems