Sha256: 46622bf7de98b30b26baf56a5ea2fa0620b9cd942876ea54203d0e74c1644c92

Contents?: true

Size: 1.26 KB

Versions: 9

Compression:

Stored size: 1.26 KB

Contents

module AngellistApi
  class Client
    # Defines methods related to URLs
    module Startups
      # Get a startup's information given an id.
      # @requires_authentication Optional
      # @response_format `json`
      # @param id [Integer] :id id of the desired startup.
      # @example Get a startup's information given an id.
      #   AngellistApi.get_startup
      def get_startup(id)
        get("/startups/#{id}", :format => :json, :phoenix => true)
      end
      
      # Search for a startup given a URL slug. Responds like GET /startups/:id.
      # @requires_authentication Optional
      # @response_format `json`
      # @param options [Hash] A customizable set of options.
      # @option options [String] :slug The URL slug of the desired startup. 
      # @option options [String] :domain The domain of the desired startup. Subdomains are not allowed. Keep in mind that startups can list any domain as their own. The startup with the most followers will be returned in the case of multiple hits. 
      # @example Search for a startup given a URL slug. Responds like GET /startups/:id.
      #   AngellistApi.startup_search
      def startup_search(options={})
        get("/startups/search", options, :format => :json, :phoenix => true)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
angellist_api-0.0.9 lib/angellist_api/client/startups.rb
angellist_api-0.0.8 lib/angellist_api/client/startups.rb
angellist_api-0.0.7 lib/angellist_api/client/startups.rb
angellist_api-0.0.6 lib/angellist_api/client/startups.rb
angellist_api-0.0.5 lib/angellist_api/client/startups.rb
angellist_api-0.0.4 lib/angellist_api/client/startups.rb
angellist_api-0.0.3 lib/angellist_api/client/startups.rb
angellist_api-0.0.2 lib/angellist_api/client/startups.rb
angellist_api-0.0.1 lib/angellist_api/client/startups.rb