Class: SirvRestApi::HttpStats

Inherits:
Object
  • Object
show all
Defined in:
lib/sirv_rest_api/models.rb

Overview

HTTP statistics

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dateObject

Returns the value of attribute date.



285
286
287
# File 'lib/sirv_rest_api/models.rb', line 285

def date
  @date
end

#requestsObject

Returns the value of attribute requests.



285
286
287
# File 'lib/sirv_rest_api/models.rb', line 285

def requests
  @requests
end

#transferObject

Returns the value of attribute transfer.



285
286
287
# File 'lib/sirv_rest_api/models.rb', line 285

def transfer
  @transfer
end