Sha256: 1af450d1d5e2770a71d8716433aa464efdee4e263e11b6687f787b60de58993a

Contents?: true

Size: 419 Bytes

Versions: 9

Compression:

Stored size: 419 Bytes

Contents

module Datasets
  class Metadata < Struct.new(:id,
                              :name,
                              :url,
                              :licenses,
                              :description)
    def description
      description_raw = super
      if description_raw.respond_to?(:call)
        self.description = description_raw = description_raw.call
      end
      description_raw
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
red-datasets-0.1.4 lib/datasets/metadata.rb
red-datasets-0.1.3 lib/datasets/metadata.rb
red-datasets-0.1.2 lib/datasets/metadata.rb
red-datasets-0.1.1 lib/datasets/metadata.rb
red-datasets-0.1.0 lib/datasets/metadata.rb
red-datasets-0.0.9 lib/datasets/metadata.rb
red-datasets-0.0.8 lib/datasets/metadata.rb
red-datasets-0.0.7 lib/datasets/metadata.rb
red-datasets-0.0.6 lib/datasets/metadata.rb