Sha256: 908aa0a5f687b1a791e206e74f57afb7f58a0f5198337c251f9d1f0c3c7144d5

Contents?: true

Size: 388 Bytes

Versions: 4

Compression:

Stored size: 388 Bytes

Contents

module WorldbankAsDataframe

  class LendingType

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

    def self.all
      find('all')
    end

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

    def initialize(values={})
      @raw = values
      @id = values['id']
      @name = values['value']
      @type = 'lendingTypes'
    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/lending_type.rb
worldbank_as_dataframe-0.2 lib/worldbank_as_dataframe/lending_type.rb
worldbank_as_dataframe-0.1.1 lib/worldbank_as_dataframe/lending_type.rb
worldbank_as_dataframe-0.1.0 lib/worldbank_as_dataframe/lending_type.rb