Class: GoogleSimpleApi::Settings
- Inherits:
-
Object
- Object
- GoogleSimpleApi::Settings
- Defined in:
- lib/google_simple_api/settings.rb
Instance Attribute Summary collapse
-
#api ⇒ Object
Returns the value of attribute api.
-
#api_client ⇒ Object
Returns the value of attribute api_client.
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
-
#discovered_api ⇒ Object
Returns the value of attribute discovered_api.
-
#name ⇒ Object
Returns the value of attribute name.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Settings
constructor
A new instance of Settings.
- #load_api ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Settings
Returns a new instance of Settings.
21 22 23 24 25 26 27 28 29 |
# File 'lib/google_simple_api/settings.rb', line 21 def initialize( = {}) @api = [:api] @client_id = [:client_id] @client_secret = [:client_secret] @name = [:name] @api_version = [:api_version] @version = [:version] @scope = [].push([:scope]).flatten end |
Instance Attribute Details
#api ⇒ Object
Returns the value of attribute api.
18 19 20 |
# File 'lib/google_simple_api/settings.rb', line 18 def api @api end |
#api_client ⇒ Object
Returns the value of attribute api_client.
18 19 20 |
# File 'lib/google_simple_api/settings.rb', line 18 def api_client @api_client end |
#api_version ⇒ Object
Returns the value of attribute api_version.
18 19 20 |
# File 'lib/google_simple_api/settings.rb', line 18 def api_version @api_version end |
#client_id ⇒ Object
Returns the value of attribute client_id.
18 19 20 |
# File 'lib/google_simple_api/settings.rb', line 18 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
18 19 20 |
# File 'lib/google_simple_api/settings.rb', line 18 def client_secret @client_secret end |
#discovered_api ⇒ Object
Returns the value of attribute discovered_api.
18 19 20 |
# File 'lib/google_simple_api/settings.rb', line 18 def discovered_api @discovered_api end |
#name ⇒ Object
Returns the value of attribute name.
18 19 20 |
# File 'lib/google_simple_api/settings.rb', line 18 def name @name end |
#scope ⇒ Object
Returns the value of attribute scope.
18 19 20 |
# File 'lib/google_simple_api/settings.rb', line 18 def scope @scope end |
#version ⇒ Object
Returns the value of attribute version.
18 19 20 |
# File 'lib/google_simple_api/settings.rb', line 18 def version @version end |
Instance Method Details
#load_api ⇒ Object
31 32 33 34 |
# File 'lib/google_simple_api/settings.rb', line 31 def load_api @api_client = load_api_client @discovered_api = discover_api if @api_client end |