Class: AmendiaRemote::Config
- Inherits:
-
Object
- Object
- AmendiaRemote::Config
- Defined in:
- lib/amendia_remote/config.rb
Constant Summary collapse
- COULD_NOT_CONNECT =
"COULD_NOT_CONNECT_TO_SERVER"
Instance Attribute Summary collapse
-
#access_role ⇒ Object
Returns the value of attribute access_role.
-
#api_user ⇒ Object
Returns the value of attribute api_user.
-
#authorize ⇒ Object
Returns the value of attribute authorize.
-
#courses ⇒ Object
Returns the value of attribute courses.
-
#host ⇒ Object
Returns the value of attribute host.
-
#host_url ⇒ Object
Returns the value of attribute host_url.
-
#instruments ⇒ Object
Returns the value of attribute instruments.
-
#port ⇒ Object
Returns the value of attribute port.
-
#product ⇒ Object
Returns the value of attribute product.
-
#product_cat ⇒ Object
Returns the value of attribute product_cat.
-
#registration ⇒ Object
Returns the value of attribute registration.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/amendia_remote/config.rb', line 7 def initialize @host = 'amendiatraining.com' @port = '80' @host_url = 'http://amendiatraining.com' @access_role = 'Blue Site User' @api_user = { email: '[email protected]', password: 'Z7gvBqJ002x7' } = { url: '/api/v1/users/authorize', method: 'post' } @registration = { url: '/api/v1/users', method: 'post' } @product = { url: '/api/v1/products', method: 'get' } @product_cat = { url: '/api/v1/product_categories', method: 'get' } @instruments = { url: '/api/v1/instruments', method: 'get' } @courses = { url: '/api/v1/courses', method: 'get' } end |
Instance Attribute Details
#access_role ⇒ Object
Returns the value of attribute access_role.
3 4 5 |
# File 'lib/amendia_remote/config.rb', line 3 def access_role @access_role end |
#api_user ⇒ Object
Returns the value of attribute api_user.
3 4 5 |
# File 'lib/amendia_remote/config.rb', line 3 def api_user @api_user end |
#authorize ⇒ Object
Returns the value of attribute authorize.
3 4 5 |
# File 'lib/amendia_remote/config.rb', line 3 def end |
#courses ⇒ Object
Returns the value of attribute courses.
3 4 5 |
# File 'lib/amendia_remote/config.rb', line 3 def courses @courses end |
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/amendia_remote/config.rb', line 3 def host @host end |
#host_url ⇒ Object
Returns the value of attribute host_url.
3 4 5 |
# File 'lib/amendia_remote/config.rb', line 3 def host_url @host_url end |
#instruments ⇒ Object
Returns the value of attribute instruments.
3 4 5 |
# File 'lib/amendia_remote/config.rb', line 3 def instruments @instruments end |
#port ⇒ Object
Returns the value of attribute port.
3 4 5 |
# File 'lib/amendia_remote/config.rb', line 3 def port @port end |
#product ⇒ Object
Returns the value of attribute product.
3 4 5 |
# File 'lib/amendia_remote/config.rb', line 3 def product @product end |
#product_cat ⇒ Object
Returns the value of attribute product_cat.
3 4 5 |
# File 'lib/amendia_remote/config.rb', line 3 def product_cat @product_cat end |
#registration ⇒ Object
Returns the value of attribute registration.
3 4 5 |
# File 'lib/amendia_remote/config.rb', line 3 def registration @registration end |