Sha256: ba798185a3561afd082908bc23339df5517c7248643a4e26a7b27c9b54140bc0

Contents?: true

Size: 461 Bytes

Versions: 2

Compression:

Stored size: 461 Bytes

Contents

module Garb
  class Destination
    attr_reader :match_type, :url, :steps, :case_sensitive

    alias :case_sensitive? :case_sensitive

    def initialize(attributes)
      return unless attributes.is_a? Hash

      @match_type = attributes['matchType']
      @url = attributes['url'] # TODO was @expression
      @case_sensitive = attributes['caseSensitive']

      @steps = attributes['steps'] && attributes['steps'].map { |s| Step.new(s) }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
garb-0.9.8 lib/garb/destination.rb
garb-0.9.7 lib/garb/destination.rb