Module: Arcgis::Configurable
Instance Attribute Summary collapse
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#host ⇒ Object
Returns the value of attribute host.
-
#password ⇒ Object
Returns the value of attribute password.
-
#token ⇒ Object
Returns the value of attribute token.
-
#username ⇒ Object
Returns the value of attribute username.
Class Method Summary collapse
-
.keys ⇒ Object
TODO: include defaults? - ajturner.
Instance Method Summary collapse
Instance Attribute Details
#debug ⇒ Object
Returns the value of attribute debug.
3 4 5 |
# File 'lib/arcgis/configurable.rb', line 3 def debug @debug end |
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/arcgis/configurable.rb', line 3 def host @host end |
#password ⇒ Object
Returns the value of attribute password.
3 4 5 |
# File 'lib/arcgis/configurable.rb', line 3 def password @password end |
#token ⇒ Object
Returns the value of attribute token.
3 4 5 |
# File 'lib/arcgis/configurable.rb', line 3 def token @token end |
#username ⇒ Object
Returns the value of attribute username.
3 4 5 |
# File 'lib/arcgis/configurable.rb', line 3 def username @username end |
Class Method Details
.keys ⇒ Object
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
17 18 19 20 |
# File 'lib/arcgis/configurable.rb', line 17 def configure yield self self end |