Sha256: 0fa14058fa5c9b39a4e8cbb9010159521a28c3ebcb1fe20610888ce3fcaed3c3

Contents?: true

Size: 354 Bytes

Versions: 8

Compression:

Stored size: 354 Bytes

Contents

module NightcrawlerSwift
  class List < Command

    def execute
      response = get connection.upload_url, headers: {accept: :json}
      JSON.parse(response.body)

    rescue RestClient::ResourceNotFound => e
      raise Exceptions::NotFoundError.new(e)

    rescue StandardError => e
      raise Exceptions::ConnectionError.new(e)
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
nightcrawler_swift-0.4.0 lib/nightcrawler_swift/commands/list.rb
nightcrawler_swift-0.3.0 lib/nightcrawler_swift/list.rb
nightcrawler_swift-0.2.3 lib/nightcrawler_swift/list.rb
nightcrawler_swift-0.2.2 lib/nightcrawler_swift/list.rb
nightcrawler_swift-0.2.1 lib/nightcrawler_swift/list.rb
nightcrawler_swift-0.2.0 lib/nightcrawler_swift/list.rb
nightcrawler_swift-0.1.1 lib/nightcrawler_swift/list.rb
nightcrawler_swift-0.1.0 lib/nightcrawler_swift/list.rb