Sha256: 5e9dc1b71ebf06a7a4abd2fbfb7a90545347158bb057c3d2aa74fd06b171ab1b

Contents?: true

Size: 351 Bytes

Versions: 7

Compression:

Stored size: 351 Bytes

Contents

require 'cloudflair/entity'

module Cloudflair
  class DevelopmentMode
    include Cloudflair::Entity

    attr_reader :zone_id

    patchable_fields :value
    path 'zones/:zone_id/settings/development_mode'

    def initialize(zone_id)
      @zone_id = zone_id
    end

    def time_remaining
      data.fetch('time_remaining', 0)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cloudflair-0.2.5 lib/cloudflair/api/zone/settings/development_mode.rb
cloudflair-0.2.4 lib/cloudflair/api/zone/settings/development_mode.rb
cloudflair-0.2.0 lib/cloudflair/api/zone/settings/development_mode.rb
cloudflair-0.1.0 lib/cloudflair/api/zone/settings/development_mode.rb
cloudflair-0.0.9 lib/cloudflair/api/zone/settings/development_mode.rb
cloudflair-0.0.8 lib/cloudflair/api/zone/settings/development_mode.rb
cloudflair-0.0.7 lib/cloudflair/api/zone/settings/development_mode.rb