Module: Arcgis::Configurable

Included in:
Client, Online
Defined in:
lib/arcgis/configurable.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#debugObject

Returns the value of attribute debug.



3
4
5
# File 'lib/arcgis/configurable.rb', line 3

def debug
  @debug
end

#hostObject

Returns the value of attribute host.



3
4
5
# File 'lib/arcgis/configurable.rb', line 3

def host
  @host
end

#passwordObject

Returns the value of attribute password.



3
4
5
# File 'lib/arcgis/configurable.rb', line 3

def password
  @password
end

#tokenObject

Returns the value of attribute token.



3
4
5
# File 'lib/arcgis/configurable.rb', line 3

def token
  @token
end

#usernameObject

Returns the value of attribute username.



3
4
5
# File 'lib/arcgis/configurable.rb', line 3

def username
  @username
end

Class Method Details

.keysObject

TODO: include defaults? - ajturner



6
7
8
9
10
11
12
13
14
# File 'lib/arcgis/configurable.rb', line 6

def keys
  @keys ||= [
    :host,
    :username,
    :password,
    :token,
    :debug
  ]
end

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



17
18
19
20
# File 'lib/arcgis/configurable.rb', line 17

def configure
  yield self
  self
end