Class: QPush::Server::Apis::Setup
- Defined in:
- lib/qpush/server/apis/setup.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(job) ⇒ Setup
constructor
A new instance of Setup.
Methods inherited from Base
Constructor Details
#initialize(job) ⇒ Setup
Returns a new instance of Setup.
5 6 7 |
# File 'lib/qpush/server/apis/setup.rb', line 5 def initialize(job) @job = job end |
Instance Method Details
#call ⇒ Object
9 10 11 12 |
# File 'lib/qpush/server/apis/setup.rb', line 9 def call invalid_job && return unless @job.valid? setup_job end |