class GeoGuard::Configuration

Constants

FORMATS

Attributes

client_id[RW]
format[R]
host[RW]
license[RW]

Public Class Methods

new() click to toggle source
# File lib/geoguard/configuration.rb, line 9
def initialize
  @format = :CSV
end

Public Instance Methods

format=(format) click to toggle source
# File lib/geoguard/configuration.rb, line 13
def format=(format)
  raise InvalidFormat, "#{format} is not a valid format. Only #{FORMATS} are allowed." unless FORMATS.include?(format)
  @format = format
end