Sha256: 5a3495a023a6028f8211516611b11bf9404540ca51a8d4f71294e6da9b5a888e

Contents?: true

Size: 413 Bytes

Versions: 4

Compression:

Stored size: 413 Bytes

Contents

module WorldbankAsDataframe

  class Topic

    attr_reader :raw, :id, :name, :note, :type

    def self.all
      find('all')
    end

    def self.find(id)
      WorldbankAsDataframe::ParamQuery.new('topics', id, self)
    end

    def initialize(values={})
      @raw = values
      @id = values['id']
      @name = values['value']
      @note = values['sourceNote']
      @type = 'topics'
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
worldbank_as_dataframe-0.2.1 lib/worldbank_as_dataframe/topic.rb
worldbank_as_dataframe-0.2 lib/worldbank_as_dataframe/topic.rb
worldbank_as_dataframe-0.1.1 lib/worldbank_as_dataframe/topic.rb
worldbank_as_dataframe-0.1.0 lib/worldbank_as_dataframe/topic.rb