Class: GoogleApiCustomization::ApiKey
- Inherits:
-
Object
- Object
- GoogleApiCustomization::ApiKey
- Defined in:
- lib/google_api_customization/api_key.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#sensor ⇒ Object
readonly
Returns the value of attribute sensor.
Instance Method Summary collapse
-
#initialize(api_key = @api_key, sensor = false, options = {}) ⇒ ApiKey
constructor
A new instance of ApiKey.
- #place_detail(place_id, options = {}) ⇒ Object
Constructor Details
#initialize(api_key = @api_key, sensor = false, options = {}) ⇒ ApiKey
Returns a new instance of ApiKey.
10 11 12 13 14 |
# File 'lib/google_api_customization/api_key.rb', line 10 def initialize(api_key = @api_key, sensor = false, = {}) api_key ? @api_key = api_key : @api_key = GoogleApiCustomization.api_key @sensor = sensor @options = end |
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
5 6 7 |
# File 'lib/google_api_customization/api_key.rb', line 5 def api_key @api_key end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/google_api_customization/api_key.rb', line 7 def @options end |
#sensor ⇒ Object (readonly)
Returns the value of attribute sensor.
8 9 10 |
# File 'lib/google_api_customization/api_key.rb', line 8 def sensor @sensor end |