Sha256: 810df6556a931c684184501b8b211c969ac1d8ddfc42797b879855fb40dcba98

Contents?: true

Size: 414 Bytes

Versions: 4

Compression:

Stored size: 414 Bytes

Contents

module HackerOne
  module Client
    class Address
      delegate :name, :street, :city, :postal_code, :state, :country, \
        :created_at, :tshirt_size, :phone_number, to: :attributes

      def initialize(address)
        @address = address
      end

      def id
        @address[:id]
      end

      private

      def attributes
        OpenStruct.new(@address[:attributes])
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hackerone-client-0.15.0 lib/hackerone/client/address.rb
hackerone-client-0.14.2 lib/hackerone/client/address.rb
hackerone-client-0.14.1 lib/hackerone/client/address.rb
hackerone-client-0.14.0 lib/hackerone/client/address.rb