Class: StackOne::Models::Shared::Url
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::Url
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/url.rb
Overview
The request URL data
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(hostname: nil, path: nil, query_params: nil, url: nil) ⇒ Url
constructor
A new instance of Url.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(hostname: nil, path: nil, query_params: nil, url: nil) ⇒ Url
Returns a new instance of Url.
25 26 27 28 29 30 |
# File 'lib/stack_one/models/shared/url.rb', line 25 def initialize(hostname: nil, path: nil, query_params: nil, url: nil) @hostname = hostname @path = path @query_params = query_params @url = url end |
Instance Method Details
#==(other) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/stack_one/models/shared/url.rb', line 33 def ==(other) return false unless other.is_a? self.class return false unless @hostname == other.hostname return false unless @path == other.path return false unless @query_params == other.query_params return false unless @url == other.url true end |