Class: CircleciArtifact::Query
- Inherits:
-
Object
- Object
- CircleciArtifact::Query
- Defined in:
- lib/circleci_artifact.rb
Overview
Simple queries for artifacts
Instance Attribute Summary collapse
-
#url_substring ⇒ Object
readonly
Returns the value of attribute url_substring.
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #hash ⇒ Object
-
#initialize(url_substring:) ⇒ Query
constructor
‘url_substring’ is a resource url substring you’re looking for.
Constructor Details
#initialize(url_substring:) ⇒ Query
‘url_substring’ is a resource url substring you’re looking for
14 15 16 17 |
# File 'lib/circleci_artifact.rb', line 14 def initialize(url_substring:) raise ArgumentError if url_substring.to_s.empty? @url_substring = url_substring end |
Instance Attribute Details
#url_substring ⇒ Object (readonly)
Returns the value of attribute url_substring.
9 10 11 |
# File 'lib/circleci_artifact.rb', line 9 def url_substring @url_substring end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
19 20 21 22 |
# File 'lib/circleci_artifact.rb', line 19 def ==(other) other.is_a?(self.class) && (other.url_substring == @url_substring) end |
#hash ⇒ Object
26 27 28 |
# File 'lib/circleci_artifact.rb', line 26 def hash @url_substring.hash end |