Sha256: 144fc4b07177a406ea1c0fe230ccbd81e420d0fb9ed272415669952bb8c63403

Contents?: true

Size: 714 Bytes

Versions: 7

Compression:

Stored size: 714 Bytes

Contents

# frozen_string_literal: true

module Kentaa
  module Api
    module Resources
      class Address
        attr_reader :data

        def initialize(data)
          @data = data
        end

        def address
          data[:address]
        end

        def address2
          data[:address2]
        end

        def street
          data[:street]
        end

        def house_number
          data[:house_number]
        end

        def house_number_addition
          data[:house_number_addition]
        end

        def zipcode
          data[:zipcode]
        end

        def city
          data[:city]
        end

        def country
          data[:country]
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
kentaa-api-0.8.0 lib/kentaa/api/resources/address.rb
kentaa-api-0.7.2 lib/kentaa/api/resources/address.rb
kentaa-api-0.7.1 lib/kentaa/api/resources/address.rb
kentaa-api-0.7.0 lib/kentaa/api/resources/address.rb
kentaa-api-0.6.0 lib/kentaa/api/resources/address.rb
kentaa-api-0.5.0 lib/kentaa/api/resources/address.rb
kentaa-api-0.4.0 lib/kentaa/api/resources/address.rb