Class: MailUp::Public::Console
- Inherits:
-
Object
- Object
- MailUp::Public::Console
- Defined in:
- lib/mailup/public/console.rb
Instance Attribute Summary collapse
-
#api ⇒ Object
Returns the value of attribute api.
Instance Method Summary collapse
-
#initialize(api) ⇒ Console
constructor
A new instance of Console.
-
#new(account = {}) ⇒ JSON
Create a new trial console.
-
#status(account = {}) ⇒ JSON
Retrieve the information about current trial activation status.
Constructor Details
#initialize(api) ⇒ Console
Returns a new instance of Console.
6 7 8 |
# File 'lib/mailup/public/console.rb', line 6 def initialize(api) @api = api end |
Instance Attribute Details
#api ⇒ Object
Returns the value of attribute api.
4 5 6 |
# File 'lib/mailup/public/console.rb', line 4 def api @api end |
Instance Method Details
#new(account = {}) ⇒ JSON
Create a new trial console.
41 42 43 |
# File 'lib/mailup/public/console.rb', line 41 def new(account = {}) @api.post("#{@api.path}/Console/TrialActivation", body: account) end |
#status(account = {}) ⇒ JSON
Retrieve the information about current trial activation status.
69 70 71 |
# File 'lib/mailup/public/console.rb', line 69 def status(account = {}) @api.post("#{@api.path}/Console/TrialActivationStatus", body: account) end |