Class: ArcREST::Server
- Inherits:
-
Object
- Object
- ArcREST::Server
- Includes:
- Curlable
- Defined in:
- lib/arcrest/server.rb
Overview
superclass
Constant Summary collapse
- ENDPOINT_REGEX =
%r{/arcgis/rest/services/?}i.freeze
- BAD_ENDPOINT =
'Invalid ArcGIS endpoint'
Constants included from Curlable
Instance Attribute Summary collapse
-
#json ⇒ Object
readonly
Returns the value of attribute json.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(url, headers = {}) ⇒ Server
constructor
A new instance of Server.
Methods included from Curlable
Constructor Details
#initialize(url, headers = {}) ⇒ Server
Returns a new instance of Server.
19 20 21 22 23 24 25 26 |
# File 'lib/arcrest/server.rb', line 19 def initialize(url, headers = {}) @url = url @headers = headers validate_endpoint_url @server_url = server_url @json = json_ @version = version_ end |
Instance Attribute Details
#json ⇒ Object (readonly)
Returns the value of attribute json.
17 18 19 |
# File 'lib/arcrest/server.rb', line 17 def json @json end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
17 18 19 |
# File 'lib/arcrest/server.rb', line 17 def url @url end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
17 18 19 |
# File 'lib/arcrest/server.rb', line 17 def version @version end |