Sha256: b04f6b0495b57cb549b56615d11a4159ba784c409bf94af1b5c3112a0efa1ce8
Contents?: true
Size: 1.31 KB
Versions: 1
Compression:
Stored size: 1.31 KB
Contents
# encoding: utf-8 # # Mocrata is a [SODA](http://dev.socrata.com/) (Socrata Open Data API) client # developed by [Mode Analytics](https://modeanalytics.com). # module Mocrata # Supported Socrata content types # # @see http://dev.socrata.com/docs/formats/ Socrata format documentation # # @todo Add support for application/rdf+xml # CONTENT_TYPES = { :json => 'application/json', :csv => 'text/csv', :xml => 'application/atom+xml' } class << self # Set Mocrata configuration values # # @yield [Mocrata::Configuration] the configuration instance # # @example # Mocrata.configure do |config| # config.app_token = 'yourtoken' # config.per_page = 1000 # end # def configure(&block) yield config end # The Mocrata configuration instance # # @return [Mocrata::Configuration] the configuration instance # def config @config ||= Mocrata::Configuration.new end # Remove Mocrata configuration instance variable # def reset if instance_variable_defined?(:@config) remove_instance_variable(:@config) end end end end require 'mocrata/configuration' require 'mocrata/dataset' require 'mocrata/dataset_url' require 'mocrata/request' require 'mocrata/response' require 'mocrata/version'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mocrata-0.1.0 | lib/mocrata.rb |