<commit_before>module Rooftop
  module Events
    class Price
      include Rooftop::Post
      include Rooftop::Events::MetaAttributes
      self.api_namespace = "rooftop-events"
      self.api_version = 2
      self.api_endpoint = "price_lists/:price_list_id/prices"

      def price_band
        # TODO - we should be able to call resolve() on these links
        PriceBand.find(_embedded[:price_band].first[:id])
      end

      def ticket_type
        # TODO - we should be able to call resolve() on these links
        TicketType.find(_embedded[:ticket_type].first[:id])
      end

    end
  end



end<commit_msg>wip -<commit_after>module Rooftop
  module Events
    class Price
      include Rooftop::Post
      include Rooftop::Events::MetaAttributes
      self.api_namespace = "rooftop-events"
      self.api_version = 2
      # self.api_endpoint = "price_lists/:price_list_id/prices"

      def initialize(args)
        super
        if _embedded
          @_price_list_id = _embedded[:price_list].first[:id]
        end
      end

      def price_band
        # TODO - we should be able to call resolve() on these links
        PriceBand.find(_embedded[:price_band].first[:id])
      end

      def ticket_type
        # TODO - we should be able to call resolve() on these links
        TicketType.find(_embedded[:ticket_type].first[:id])
      end

      # def _price_list_id
      #   _embedded[:price_list].first[:id]
      # end


    end
  end



end
{'fraction_non_alphanumeric': 0.08514986376021798, 'fraction_numerical': 0.0013623978201634877, 'mean_word_length': 2.3847926267281108, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1192413', 'n_tokens_mistral': 463, 'n_tokens_neox': 440, 'n_words': 111}