Sha256: 48055824d316f1c979d7270aa0ebaa2d14e3060f1f24afb418f3cc3eadd805aa
Contents?: true
Size: 543 Bytes
Versions: 2
Compression:
Stored size: 543 Bytes
Contents
module ArcREST # a FeatureService or a MapService class Service < Server attr_reader :max_record_count, :capabilities, :layers def initialize(url) super @max_record_count = max_record_count # may be nil @capabilities = capabilities # may be empty @layers = layers # may be empty end def max_record_count @json['maxRecordCount'] end def capabilities @json['capabilities'] ? @json['capabilities'].split(',') : nil end def layers @json['layers'] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
arcrest-0.0.2 | lib/arcrest/service.rb |
arcrest-0.0.1 | lib/arcrest/service.rb |