Class: PagSeguro::Config
- Inherits:
-
Object
- Object
- PagSeguro::Config
- Defined in:
- lib/pagseguro/config.rb
Overview
Holds the configuration of the user
Instance Attribute Summary collapse
-
#app_id ⇒ Object
The application id.
-
#app_key ⇒ Object
A token related to the application that is making the requests.
-
#email ⇒ Object
Primary e-mail associated with this account.
-
#encoding ⇒ Object
The encoding that will be used.
-
#environment ⇒ Object
The PagSeguro environment.
-
#receiver_email ⇒ Object
The e-mail that will be displayed when sender is redirected to PagSeguro.
-
#token ⇒ Object
The API token associated with this account.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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_id ⇒ Object
The application id
15 16 17 |
# File 'lib/pagseguro/config.rb', line 15 def app_id @app_id end |
#app_key ⇒ Object
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 |
#email ⇒ Object
Primary e-mail associated with this account.
5 6 7 |
# File 'lib/pagseguro/config.rb', line 5 def email @email end |
#encoding ⇒ Object
The encoding that will be used. Defaults to UTF-8
.
27 28 29 |
# File 'lib/pagseguro/config.rb', line 27 def encoding @encoding end |
#environment ⇒ Object
The PagSeguro environment. production
or sandbox
. Defaults to production
.
23 24 25 |
# File 'lib/pagseguro/config.rb', line 23 def environment @environment end |
#receiver_email ⇒ Object
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 |
#token ⇒ Object
The API token associated with this account.
12 13 14 |
# File 'lib/pagseguro/config.rb', line 12 def token @token end |