Class: SirvRestApi::HttpStats
- Inherits:
-
Object
- Object
- SirvRestApi::HttpStats
- Defined in:
- lib/sirv_rest_api/models.rb
Overview
HTTP statistics
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#requests ⇒ Object
Returns the value of attribute requests.
-
#transfer ⇒ Object
Returns the value of attribute transfer.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ HttpStats
constructor
A new instance of HttpStats.
Constructor Details
#initialize(data = {}) ⇒ HttpStats
Returns a new instance of HttpStats.
287 288 289 290 291 |
# File 'lib/sirv_rest_api/models.rb', line 287 def initialize(data = {}) @date = data["date"] @transfer = data["transfer"] @requests = data["requests"] end |
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date.
285 286 287 |
# File 'lib/sirv_rest_api/models.rb', line 285 def date @date end |
#requests ⇒ Object
Returns the value of attribute requests.
285 286 287 |
# File 'lib/sirv_rest_api/models.rb', line 285 def requests @requests end |
#transfer ⇒ Object
Returns the value of attribute transfer.
285 286 287 |
# File 'lib/sirv_rest_api/models.rb', line 285 def transfer @transfer end |