Class: Squarespace::Config
- Inherits:
-
Object
- Object
- Squarespace::Config
- Defined in:
- lib/squarespace/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#api_url ⇒ Object
readonly
Returns the value of attribute api_url.
-
#app_name ⇒ Object
readonly
Returns the value of attribute app_name.
Instance Method Summary collapse
-
#initialize(options) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(options) ⇒ Config
Returns a new instance of Config.
5 6 7 8 9 10 11 |
# File 'lib/squarespace/configuration.rb', line 5 def initialize() @api_url = [:api_url] || "https://api.squarespace.com" # No default values @app_name = [:app_name] @api_key = [:api_key] end |
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/squarespace/configuration.rb', line 3 def api_key @api_key end |
#api_url ⇒ Object (readonly)
Returns the value of attribute api_url.
3 4 5 |
# File 'lib/squarespace/configuration.rb', line 3 def api_url @api_url end |
#app_name ⇒ Object (readonly)
Returns the value of attribute app_name.
3 4 5 |
# File 'lib/squarespace/configuration.rb', line 3 def app_name @app_name end |