Sha256: 894d2da04307972a6fd728d740e0830b21ed0076e87a8d574b8f52cffabd96f4
Contents?: true
Size: 445 Bytes
Versions: 4
Compression:
Stored size: 445 Bytes
Contents
require 'active_model/serializer' module SpreeSignifyd class AddressSerializer < ActiveModel::Serializer self.root = false attributes :address def address { 'streetAddress' => object.address1, 'unit' => object.address2, 'city' => object.city, 'provinceCode' => object.state_text, 'postalCode' => object.zipcode, 'countryCode' => object.country.iso } end end end
Version data entries
4 entries across 4 versions & 1 rubygems