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