Class: ApnsGatling::Request
- Inherits:
-
Object
- Object
- ApnsGatling::Request
- Defined in:
- lib/apns_gatling/request.rb
Instance Attribute Summary collapse
-
#auth_token ⇒ Object
readonly
Returns the value of attribute auth_token.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(message, auth_token, host) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(message, auth_token, host) ⇒ Request
Returns a new instance of Request.
5 6 7 8 9 10 11 12 |
# File 'lib/apns_gatling/request.rb', line 5 def initialize(, auth_token, host) path = "/3/device/#{.token}" @id = .apns_id @path = path @auth_token = auth_token @headers = headers_from , auth_token, host, path @data = .payload_data end |
Instance Attribute Details
#auth_token ⇒ Object (readonly)
Returns the value of attribute auth_token.
3 4 5 |
# File 'lib/apns_gatling/request.rb', line 3 def auth_token @auth_token end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
3 4 5 |
# File 'lib/apns_gatling/request.rb', line 3 def data @data end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
3 4 5 |
# File 'lib/apns_gatling/request.rb', line 3 def headers @headers end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
3 4 5 |
# File 'lib/apns_gatling/request.rb', line 3 def host @host end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/apns_gatling/request.rb', line 3 def id @id end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/apns_gatling/request.rb', line 3 def path @path end |