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