Skip to content

Instantly share code, notes, and snippets.

@joestelmach
Created July 10, 2012 14:56
Show Gist options
  • Save joestelmach/3083842 to your computer and use it in GitHub Desktop.
Save joestelmach/3083842 to your computer and use it in GitHub Desktop.
# 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