Class: Sappy::Request
- Inherits:
-
Object
- Object
- Sappy::Request
- Defined in:
- lib/sappy/request.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(account, action, parameters) ⇒ Request
constructor
A new instance of Request.
- #perform ⇒ Object
Constructor Details
#initialize(account, action, parameters) ⇒ Request
Returns a new instance of Request.
7 8 9 |
# File 'lib/sappy/request.rb', line 7 def initialize(account, action, parameters) @account, @action, @parameters = account, action, parameters end |
Class Method Details
.perform(account, action, parameters) ⇒ Object
3 4 5 |
# File 'lib/sappy/request.rb', line 3 def self.perform(account, action, parameters) new(account, action, parameters).perform end |