Class: GrowthPush::Request
- Inherits:
-
Object
- Object
- GrowthPush::Request
- Defined in:
- lib/growth_push/request.rb
Instance Attribute Summary collapse
-
#endpoint ⇒ Object
readonly
Returns the value of attribute endpoint.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(method, endpoint, headers, params) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(method, endpoint, headers, params) ⇒ Request
Returns a new instance of Request.
7 8 9 10 11 12 |
# File 'lib/growth_push/request.rb', line 7 def initialize(method, endpoint, headers, params) @method = method @endpoint = endpoint @headers = headers @params = params end |
Instance Attribute Details
#endpoint ⇒ Object (readonly)
Returns the value of attribute endpoint.
5 6 7 |
# File 'lib/growth_push/request.rb', line 5 def endpoint @endpoint end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
5 6 7 |
# File 'lib/growth_push/request.rb', line 5 def headers @headers end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
5 6 7 |
# File 'lib/growth_push/request.rb', line 5 def method @method end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
5 6 7 |
# File 'lib/growth_push/request.rb', line 5 def params @params end |
Instance Method Details
#create ⇒ Object
14 15 16 |
# File 'lib/growth_push/request.rb', line 14 def create send(method) end |