Class: AmendiaRemote::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/amendia_remote/config.rb

Constant Summary collapse

COULD_NOT_CONNECT =
"COULD_NOT_CONNECT_TO_SERVER"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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' }

       @authorize = { 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_roleObject

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_userObject

Returns the value of attribute api_user.



3
4
5
# File 'lib/amendia_remote/config.rb', line 3

def api_user
  @api_user
end

#authorizeObject

Returns the value of attribute authorize.



3
4
5
# File 'lib/amendia_remote/config.rb', line 3

def authorize
  @authorize
end

#coursesObject

Returns the value of attribute courses.



3
4
5
# File 'lib/amendia_remote/config.rb', line 3

def courses
  @courses
end

#hostObject

Returns the value of attribute host.



3
4
5
# File 'lib/amendia_remote/config.rb', line 3

def host
  @host
end

#host_urlObject

Returns the value of attribute host_url.



3
4
5
# File 'lib/amendia_remote/config.rb', line 3

def host_url
  @host_url
end

#instrumentsObject

Returns the value of attribute instruments.



3
4
5
# File 'lib/amendia_remote/config.rb', line 3

def instruments
  @instruments
end

#portObject

Returns the value of attribute port.



3
4
5
# File 'lib/amendia_remote/config.rb', line 3

def port
  @port
end

#productObject

Returns the value of attribute product.



3
4
5
# File 'lib/amendia_remote/config.rb', line 3

def product
  @product
end

#product_catObject

Returns the value of attribute product_cat.



3
4
5
# File 'lib/amendia_remote/config.rb', line 3

def product_cat
  @product_cat
end

#registrationObject

Returns the value of attribute registration.



3
4
5
# File 'lib/amendia_remote/config.rb', line 3

def registration
  @registration
end