/*
 * This source file is subject to the license that is bundled with this package in the file LICENSE.
 */
package com.montealegreluis.yelpv3.businesses;

/**
 * Represents the approximate cost of a meal per person
 */
public enum PricingLevel {
    INEXPENSIVE("$", "Under $10", "Inexpensive"),
    MODERATE("$$", "$11-$30", "Moderate"),
    PRICEY("$$$", "$31-$60", "Pricey"),
    ULTRA_HIGH_END("$$$$", "Above $60", "Ultra High-End");

    private final String symbol;
    private final String description;
    private final String label;

    PricingLevel(String symbol, String description, String label) {
        this.symbol = symbol;
        this.description = description;
        this.label = label;
    }

    public static PricingLevel fromSymbol(String symbol) {
        switch (symbol) {
            case "$":
                return INEXPENSIVE;
            case "$$":
                return MODERATE;
            case "$$$":
                return PRICEY;
            case "$$$$":
                return ULTRA_HIGH_END;
            default:
                throw UnknownPricingLevel.with(symbol);
        }
    }

    public String symbol() {
        return symbol;
    }

    public String description() {
        return description;
    }

    public String label() {
        return label;
    }

    public Integer value() {
        return ordinal() + 1;
    }

    @Override
    public String toString() {
        return symbol;
    }
}

@@ -434,30 +434,29 @@
 nd%22);%0A%0A    p
-rivate
+ublic
  final Strin
@@ -466,30 +466,29 @@
 ymbol;%0A    p
-rivate
+ublic
  final Strin
@@ -511,14 +511,13 @@
    p
-rivate
+ublic
  fin
@@ -1123,193 +1123,8 @@
  %7D%0A%0A
-    public String symbol() %7B%0A        return symbol;%0A    %7D%0A%0A    public String description() %7B%0A        return description;%0A    %7D%0A%0A    public String label() %7B%0A        return label;%0A    %7D%0A%0A
     

Remove getters from PricingLevel