Class: Aigu::Pusher
- Inherits:
-
Object
- Object
- Aigu::Pusher
- Defined in:
- lib/aigu/pusher.rb
Constant Summary collapse
- PUSH_PATH =
'/public_api/revisions'
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Pusher
constructor
A new instance of Pusher.
- #process! ⇒ Object
Constructor Details
#initialize(opts = {}) ⇒ Pusher
Returns a new instance of Pusher.
5 6 7 8 9 |
# File 'lib/aigu/pusher.rb', line 5 def initialize(opts = {}) @input_file = opts[:'input-file'] @accent_api_key = opts[:'accent-api-key'] @accent_url = opts[:'accent-url'] end |
Instance Method Details
#process! ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/aigu/pusher.rb', line 11 def process! puts "Sending JSON file `#{@input_file}` to Accent" puts '---' send puts '---' puts 'Done' end |