Class: RequestMethod
- Inherits:
-
Object
- Object
- RequestMethod
- Defined in:
- lib/applib/request_method.rb
Overview
The Request Method class is a class used to hold data pulled from api-docs.brightpearl.com/json-index.html
Instance Attribute Summary collapse
-
#apiDomain ⇒ Object
readonly
Returns the value of attribute apiDomain.
-
#authorizeInstance ⇒ Object
readonly
Returns the value of attribute authorizeInstance.
-
#authorizeServer ⇒ Object
readonly
Returns the value of attribute authorizeServer.
-
#HTTPMethod ⇒ Object
readonly
Returns the value of attribute HTTPMethod.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#requests ⇒ Object
readonly
Returns the value of attribute requests.
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
-
#responses ⇒ Object
readonly
Returns the value of attribute responses.
-
#service ⇒ Object
readonly
Returns the value of attribute service.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
-
#urls ⇒ Object
readonly
Returns the value of attribute urls.
Instance Method Summary collapse
-
#initialize(name, service, resource, httpMethod, uri, responses, apiDomain, urls, authorizeServer, authorizeInstance, requests) ⇒ RequestMethod
constructor
A new instance of RequestMethod.
Constructor Details
#initialize(name, service, resource, httpMethod, uri, responses, apiDomain, urls, authorizeServer, authorizeInstance, requests) ⇒ RequestMethod
Returns a new instance of RequestMethod.
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/applib/request_method.rb', line 16 def initialize(name,service,resource,httpMethod,uri,responses,apiDomain,urls,,,requests) @name = name @service = service @resource = resource @HTTPMethod = httpMethod @uri = uri @responses = responses @apiDomain = apiDomain @urls = urls = = @requests = requests end |
Instance Attribute Details
#apiDomain ⇒ Object (readonly)
Returns the value of attribute apiDomain.
9 10 11 |
# File 'lib/applib/request_method.rb', line 9 def apiDomain @apiDomain end |
#authorizeInstance ⇒ Object (readonly)
Returns the value of attribute authorizeInstance.
12 13 14 |
# File 'lib/applib/request_method.rb', line 12 def end |
#authorizeServer ⇒ Object (readonly)
Returns the value of attribute authorizeServer.
11 12 13 |
# File 'lib/applib/request_method.rb', line 11 def end |
#HTTPMethod ⇒ Object (readonly)
Returns the value of attribute HTTPMethod.
6 7 8 |
# File 'lib/applib/request_method.rb', line 6 def HTTPMethod @HTTPMethod end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/applib/request_method.rb', line 3 def name @name end |
#requests ⇒ Object (readonly)
Returns the value of attribute requests.
13 14 15 |
# File 'lib/applib/request_method.rb', line 13 def requests @requests end |
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
5 6 7 |
# File 'lib/applib/request_method.rb', line 5 def resource @resource end |
#responses ⇒ Object (readonly)
Returns the value of attribute responses.
8 9 10 |
# File 'lib/applib/request_method.rb', line 8 def responses @responses end |
#service ⇒ Object (readonly)
Returns the value of attribute service.
4 5 6 |
# File 'lib/applib/request_method.rb', line 4 def service @service end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
7 8 9 |
# File 'lib/applib/request_method.rb', line 7 def uri @uri end |
#urls ⇒ Object (readonly)
Returns the value of attribute urls.
10 11 12 |
# File 'lib/applib/request_method.rb', line 10 def urls @urls end |