ChattyCrow/chattycrow_ruby

View on GitHub
lib/chatty_crow/request/skype.rb

Summary

Maintainability
A
0 mins
Test Coverage
module ChattyCrow
  module Request
    # Skype request
    class Skype < BaseRequest
      def initialize(*args)
        super(*args)

        # If arguments exists set as body into options!
        # Its for just easy ChattyCrow.send_skype 'Hello'
        @options[:body] = @arguments_flatten if @arguments_flatten

        # Set payload
        @payload = @options
      end
    end
  end
end