class PactBroker::Api::Decorators::VersionDecorator
Public Instance Methods
from_hash(hash, options = {})
click to toggle source
Calls superclass method
# File lib/pact_broker/api/decorators/version_decorator.rb, line 86 def from_hash(hash, options = {}) if hash["tags"] updated_hash = hash.dup updated_hash["_embedded"] ||= {} updated_hash["_embedded"]["tags"] = updated_hash.delete("tags") super(updated_hash, options) else super end end
Private Instance Methods
sorted_pacts()
click to toggle source
# File lib/pact_broker/api/decorators/version_decorator.rb, line 99 def sorted_pacts represented.pact_publications.sort{ |a, b| a.provider_name.downcase <=> b.provider_name.downcase } end