Class: PagSeguro::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/pagseguro/config.rb

Overview

Holds the configuration of the user

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



29
30
31
32
# File 'lib/pagseguro/config.rb', line 29

def initialize
  @environment = :production
  @encoding = "UTF-8"
end

Instance Attribute Details

#app_idObject

The application id



15
16
17
# File 'lib/pagseguro/config.rb', line 15

def app_id
  @app_id
end

#app_keyObject

A token related to the application that is making the requests



18
19
20
# File 'lib/pagseguro/config.rb', line 18

def app_key
  @app_key
end

#emailObject

Primary e-mail associated with this account.



5
6
7
# File 'lib/pagseguro/config.rb', line 5

def email
  @email
end

#encodingObject

The encoding that will be used. Defaults to UTF-8.



27
28
29
# File 'lib/pagseguro/config.rb', line 27

def encoding
  @encoding
end

#environmentObject

The PagSeguro environment. production or sandbox. Defaults to production.



23
24
25
# File 'lib/pagseguro/config.rb', line 23

def environment
  @environment
end

#receiver_emailObject

The e-mail that will be displayed when sender is redirected to PagSeguro.



9
10
11
# File 'lib/pagseguro/config.rb', line 9

def receiver_email
  @receiver_email
end

#tokenObject

The API token associated with this account.



12
13
14
# File 'lib/pagseguro/config.rb', line 12

def token
  @token
end