Class: GoApiClient::Domain::InternalCache
- Inherits:
-
Object
- Object
- GoApiClient::Domain::InternalCache
- Defined in:
- lib/go_api_client/domain/internal_cache.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(uri, options = {}) ⇒ InternalCache
constructor
A new instance of InternalCache.
Constructor Details
#initialize(uri, options = {}) ⇒ InternalCache
6 7 8 9 |
# File 'lib/go_api_client/domain/internal_cache.rb', line 6 def initialize(uri, = {}) @uri = uri = end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/go_api_client/domain/internal_cache.rb', line 4 def end |
#uri ⇒ Object
Returns the value of attribute uri.
4 5 6 |
# File 'lib/go_api_client/domain/internal_cache.rb', line 4 def uri @uri end |
Instance Method Details
#==(other) ⇒ Object
11 12 13 14 15 |
# File 'lib/go_api_client/domain/internal_cache.rb', line 11 def ==(other) other && self.class.equal?(other.class) && @uri == other.uri && [:eager_parser] == other.[:eager_parser] end |
#eql?(other) ⇒ Boolean
21 22 23 24 25 |
# File 'lib/go_api_client/domain/internal_cache.rb', line 21 def eql?(other) other && self.class.equal?(other.class) && @uri.eql?(other.uri) && [:eager_parser].eql?(other.[:eager_parser]) end |
#hash ⇒ Object
17 18 19 |
# File 'lib/go_api_client/domain/internal_cache.rb', line 17 def hash @uri.hash ^ [:eager_parser].hash end |