Sha256: 7ec99a3e2f0cc2b22d9fccc61de240517d4740d3ef99a0119dd2ca68c728889f

Contents?: true

Size: 427 Bytes

Versions: 11

Compression:

Stored size: 427 Bytes

Contents

module NNEClient
  class Ownership
    extend NNEClient::ResultAttributes

    attributes :name, :country

    def initialize(ownership_hash)
      @hash = ownership_hash
    end

    def share
      @hash[:share].strip
    end

    def ==(other)
      share == other.share &&
        name == other.name &&
        country == other.country
    end

    def company
      Result.new(:tdc_id => @hash[:tdc_id])
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
nne_client-0.0.11 lib/nne_client/record_types/ownership.rb
nne_client-0.0.10 lib/nne_client/record_types/ownership.rb
nne_client-0.0.9 lib/nne_client/record_types/ownership.rb
nne_client-0.0.8 lib/nne_client/record_types/ownership.rb
nne_client-0.0.7 lib/nne_client/record_types/ownership.rb
nne_client-0.0.6 lib/nne_client/record_types/ownership.rb
nne_client-0.0.5 lib/nne_client/record_types/ownership.rb
nne_client-0.0.4 lib/nne_client/record_types/ownership.rb
nne_client-0.0.3 lib/nne_client/record_types/ownership.rb
nne_client-0.0.2 lib/nne_client/record_types/ownership.rb
nne_client-0.0.1 lib/nne_client/record_types/ownership.rb