Sha256: f4bac929eb789ab79c2902c4085e785bae9612412c48c6ed44d0a683bb4eb373

Contents?: true

Size: 520 Bytes

Versions: 12

Compression:

Stored size: 520 Bytes

Contents

module Gurney
  class Dependency

    attr_reader :ecosystem, :name, :version

    def initialize(ecosystem:, name:, version:)
      @ecosystem = ecosystem
      @name = name
      @version = version
    end

    def to_json(*args)
      {
        ecosystem: @ecosystem,
        name: @name,
        version: @version,
      }.to_json(*args)
    end

    def ==(other)
      other.class == self.class &&
      other.ecosystem == ecosystem &&
      other.name == name &&
      other.version == version
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
gurney_client-0.4.0 lib/gurney/dependency.rb
gurney_client-0.3.0 lib/gurney/dependency.rb
gurney_client-0.2.3 lib/gurney/dependency.rb
gurney_client-0.2.2 lib/gurney/dependency.rb
gurney_client-0.2.1 lib/gurney/dependency.rb
gurney_client-0.2.0 lib/gurney/dependency.rb
gurney_client-0.1.6 lib/gurney/dependency.rb
gurney_client-0.1.5 lib/gurney/dependency.rb
gurney_client-0.1.4 lib/gurney/dependency.rb
gurney_client-0.1.3 lib/gurney/dependency.rb
gurney_client-0.1.2 lib/gurney/dependency.rb
gurney_client-0.1.1 lib/gurney/dependency.rb