Sha256: 3412aa4292e559beb8f055aa34b22f392cd925b107153134d6281b3fd8c28718

Contents?: true

Size: 848 Bytes

Versions: 2

Compression:

Stored size: 848 Bytes

Contents

module Open311
  class Client
    module Service
      # Provide a list of acceptable 311 service request types and their associated service codes
      #
      # @todo Overload the method to allow fetching of the authenticated user's screen name from configurati
      # @format :xml
      # @key false
      # @param options [Hash] A customizable set of options.
      # @return [Array]
      # @see http://wiki.open311.org/GeoReport_v2#GET_Service_List
      # @example Provide a list of acceptable 311 service request types and their associated service codes
      #   Open311.service_list
      def service_list(options={})
        options.merge!(:jurisdiction_id => jurisdiction)
        response = get('dev/v2/services', options)
        format.to_s.downcase == 'xml' ? response['services']['service'] : response
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
open311-0.0.1 lib/open311/client/service.rb
open311-0.0.0 lib/open311/client/service.rb