Sha256: 957b7f0a3618bba09da603305df533b4054d73c2882262ee5991670b2df4abc6

Contents?: true

Size: 424 Bytes

Versions: 5

Compression:

Stored size: 424 Bytes

Contents

require 'cloudflair/api/zone/railgun'

module Cloudflair
  class Zone
    def railguns(filter = {})
      raw_railguns = response connection.get("#{path}/railguns", filter)

      raw_railguns.map do |raw_railgun|
        railgun = railgun raw_railgun['id']
        railgun.data = raw_railgun
        railgun
      end
    end

    def railgun(railgun_id)
      Cloudflair::Railgun.new zone_id, railgun_id
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cloudflair-0.2.5 lib/cloudflair/api/zone__railguns.rb
cloudflair-0.2.4 lib/cloudflair/api/zone__railguns.rb
cloudflair-0.2.0 lib/cloudflair/api/zone__railguns.rb
cloudflair-0.1.0 lib/cloudflair/api/zone__railguns.rb
cloudflair-0.0.9 lib/cloudflair/api/zone__railguns.rb