Created
August 22, 2012 00:22
-
-
Save drewdeponte/3420782 to your computer and use it in GitHub Desktop.
What I want it to be like
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
module MyModule | |
module Scope | |
# The message is intended for the advertiser. | |
ADVERTISER = 0 | |
# The message is intended for the logged-in business user. | |
BUSINESSUSER = 1 | |
# The message is intended for the business. | |
BUSINESS = 2 | |
# The message is intended for the co-brand. | |
COBRAND = 3 | |
DIGITALPRESENCE = 4 | |
# The message is intended for the campaign related actions. | |
CAMPAIGN = 5 | |
# The message is a test | |
TEST = 6 | |
VALUE_MAP = {0 => "ADVERTISER", 1 => "BUSINESSUSER", 2 => "BUSINESS", 3 => "COBRAND", 4 => "DIGITALPRESENCE", 5 => "CAMPAIGN", 6 => "TEST"} | |
VALID_VALUES = Set.new([ADVERTISER, BUSINESSUSER, BUSINESS, COBRAND, DIGITALPRESENCE, CAMPAIGN, TEST]).freeze | |
end | |
module Aggregate | |
AVG = 0 | |
CNT = 1 | |
MIN = 2 | |
MAX = 3 | |
SUM = 4 | |
VALUE_MAP = {0 => "AVG", 1 => "CNT", 2 => "MIN", 3 => "MAX", 4 => "SUM"} | |
VALID_VALUES = Set.new([AVG, CNT, MIN, MAX, SUM]).freeze | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment