Created
July 10, 2012 14:56
-
-
Save joestelmach/3083842 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generated File - DO NOT EDIT | |
require 'perka/model/base_entity_global' | |
require 'perka/model/feedback_item' | |
require 'perka/model/merchant_location' | |
require 'perka/model/customer' | |
module Perka | |
module Model | |
# Represents a check-in at a <entityReference payloadName='merchantLocation'> | |
# MerchantLocation</entityReference> by a <entityReference payloadName='customer'> | |
# Customer</entityReference>. | |
class Visit < BaseEntityGlobal | |
PROPERTY_NAMES = [ | |
# Any feedback left by the Customer after the Visit was validated. | |
:feedback_item, | |
# Where the Visit occurred. | |
:merchant_location, | |
:customer | |
] | |
TYPE_MAP = { | |
:feedbackItem => Perka::Model::FeedbackItem, | |
:merchantLocation => Perka::Model::MerchantLocation, | |
:customer => Perka::Model::Customer | |
} | |
attr_accessor *PROPERTY_NAMES | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment