Sha256: f6f9ed48ff5854baf4f473475ecd2bf609faa62e1428c34604a89ef18627bdfd
Contents?: true
Size: 809 Bytes
Versions: 9
Compression:
Stored size: 809 Bytes
Contents
module Bixby # Wraps a JSON Request # # @attr [String] operation Name of operation # @attr [Array] params Array of paramters; must be valid JSON types class JsonRequest include Jsonify include HttpClient attr_accessor :operation, :params # Create a new JsonRequest # # @param [String] operation Name of operation # @param [Array] params Array of parameters; must ve valid JSON types def initialize(operation, params) @operation = operation @params = params end # Convert object to String, useful for debugging # # @return [String] def to_s # :nocov: s = [] s << "JsonRequest:#{self.object_id}" s << " operation: #{self.operation}" s << " params: " + MultiJson.dump(self.params) s.join("\n") end # :nocov: end # JsonRequest end # Bixby
Version data entries
9 entries across 9 versions & 1 rubygems