Sha256: 6db585ce3cd4677635ed838b38032ef9c8b96b94886470785faac47f0b14d5aa

Contents?: true

Size: 671 Bytes

Versions: 21

Compression:

Stored size: 671 Bytes

Contents

module PagSeguro
  class Sender
    include ActiveModel::Validations
    extend Forwardable

    def_delegators :document, :value
    def_delegators :phone, :area_code, :number

    validates_presence_of :email, :name, :hash_id, :document, :phone

    # Set the sender e-mail.
    attr_accessor :email

    # Set the sender name.
    attr_accessor :name

    # Set the hash identifier.
    attr_accessor :hash_id

    # Set the CPF document.
    attr_accessor :document

    # Get the sender phone.
    attr_accessor :phone

    def initialize(options = {})
      @email = options[:email]
      @name = options[:name]
      @hash_id = options[:hash_id]
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

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