class Pact::ServiceConsumer

Attributes

name[RW]

Public Class Methods

from_hash(hash) click to toggle source
# File lib/pact/consumer_contract/service_consumer.rb, line 24
def self.from_hash hash
  new(symbolize_keys(hash))
end
new(options) click to toggle source
# File lib/pact/consumer_contract/service_consumer.rb, line 8
def initialize options
  @name = options[:name]
end

Public Instance Methods

as_json(options = {}) click to toggle source
# File lib/pact/consumer_contract/service_consumer.rb, line 20
def as_json options = {}
  to_hash
end
to_hash() click to toggle source
# File lib/pact/consumer_contract/service_consumer.rb, line 16
def to_hash
  {name: name}
end
to_s() click to toggle source
# File lib/pact/consumer_contract/service_consumer.rb, line 12
def to_s
  name
end