Class: PactBroker::Matrix::UnresolvedSelector
- Inherits:
-
Hash
- Object
- Hash
- PactBroker::Matrix::UnresolvedSelector
- Defined in:
- lib/pact_broker/matrix/unresolved_selector.rb
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ UnresolvedSelector
constructor
A new instance of UnresolvedSelector.
- #latest ⇒ Object
- #latest=(latest) ⇒ Object
- #latest? ⇒ Boolean
- #latest_for_pacticipant_and_tag? ⇒ Boolean
- #max_age ⇒ Object
- #max_age=(max_age) ⇒ Object
- #pacticipant_name ⇒ Object
- #pacticipant_name=(pacticipant_name) ⇒ Object
- #pacticipant_version_number ⇒ Object
- #pacticipant_version_number=(pacticipant_version_number) ⇒ Object
- #tag ⇒ Object
- #tag=(tag) ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ UnresolvedSelector
Returns a new instance of UnresolvedSelector.
4 5 6 |
# File 'lib/pact_broker/matrix/unresolved_selector.rb', line 4 def initialize(params = {}) merge!(params) end |
Instance Method Details
#latest ⇒ Object
20 21 22 |
# File 'lib/pact_broker/matrix/unresolved_selector.rb', line 20 def latest self[:latest] end |
#latest=(latest) ⇒ Object
28 29 30 |
# File 'lib/pact_broker/matrix/unresolved_selector.rb', line 28 def latest= latest self[:latest] = latest end |
#latest? ⇒ Boolean
16 17 18 |
# File 'lib/pact_broker/matrix/unresolved_selector.rb', line 16 def latest? !!latest end |
#latest_for_pacticipant_and_tag? ⇒ Boolean
52 53 54 |
# File 'lib/pact_broker/matrix/unresolved_selector.rb', line 52 def latest_for_pacticipant_and_tag? !!(pacticipant_name && tag && latest) end |
#max_age ⇒ Object
48 49 50 |
# File 'lib/pact_broker/matrix/unresolved_selector.rb', line 48 def max_age self[:max_age] end |
#max_age=(max_age) ⇒ Object
44 45 46 |
# File 'lib/pact_broker/matrix/unresolved_selector.rb', line 44 def max_age= max_age self[:max_age] = max_age end |
#pacticipant_name ⇒ Object
8 9 10 |
# File 'lib/pact_broker/matrix/unresolved_selector.rb', line 8 def pacticipant_name self[:pacticipant_name] end |
#pacticipant_name=(pacticipant_name) ⇒ Object
36 37 38 |
# File 'lib/pact_broker/matrix/unresolved_selector.rb', line 36 def pacticipant_name= pacticipant_name self[:pacticipant_name] = pacticipant_name end |
#pacticipant_version_number ⇒ Object
12 13 14 |
# File 'lib/pact_broker/matrix/unresolved_selector.rb', line 12 def pacticipant_version_number self[:pacticipant_version_number] end |
#pacticipant_version_number=(pacticipant_version_number) ⇒ Object
40 41 42 |
# File 'lib/pact_broker/matrix/unresolved_selector.rb', line 40 def pacticipant_version_number= pacticipant_version_number self[:pacticipant_version_number] = pacticipant_version_number end |
#tag ⇒ Object
24 25 26 |
# File 'lib/pact_broker/matrix/unresolved_selector.rb', line 24 def tag self[:tag] end |
#tag=(tag) ⇒ Object
32 33 34 |
# File 'lib/pact_broker/matrix/unresolved_selector.rb', line 32 def tag= tag self[:tag] = tag end |