Class: Seatsio::ForSaleRateLimitInfo
- Inherits:
-
Object
- Object
- Seatsio::ForSaleRateLimitInfo
- Defined in:
- lib/seatsio/domain.rb
Instance Attribute Summary collapse
-
#rate_limit_remaining_calls ⇒ Object
readonly
Returns the value of attribute rate_limit_remaining_calls.
-
#rate_limit_reset_date ⇒ Object
readonly
Returns the value of attribute rate_limit_reset_date.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(rate_limit_remaining_calls, rate_limit_reset_date) ⇒ ForSaleRateLimitInfo
constructor
A new instance of ForSaleRateLimitInfo.
Constructor Details
#initialize(rate_limit_remaining_calls, rate_limit_reset_date) ⇒ ForSaleRateLimitInfo
Returns a new instance of ForSaleRateLimitInfo.
120 121 122 123 |
# File 'lib/seatsio/domain.rb', line 120 def initialize(rate_limit_remaining_calls, rate_limit_reset_date) @rate_limit_remaining_calls = rate_limit_remaining_calls @rate_limit_reset_date = rate_limit_reset_date end |
Instance Attribute Details
#rate_limit_remaining_calls ⇒ Object (readonly)
Returns the value of attribute rate_limit_remaining_calls.
118 119 120 |
# File 'lib/seatsio/domain.rb', line 118 def rate_limit_remaining_calls @rate_limit_remaining_calls end |
#rate_limit_reset_date ⇒ Object (readonly)
Returns the value of attribute rate_limit_reset_date.
118 119 120 |
# File 'lib/seatsio/domain.rb', line 118 def rate_limit_reset_date @rate_limit_reset_date end |
Class Method Details
.from_json(data) ⇒ Object
125 126 127 |
# File 'lib/seatsio/domain.rb', line 125 def self.from_json(data) ForSaleRateLimitInfo.new(data['rateLimitRemainingCalls'], parse_date(data['rateLimitResetDate'])) end |