Skip to content

Instantly share code, notes, and snippets.

@marzdgzmn
Created May 21, 2019 08:20
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save marzdgzmn/b0891dbb77722e46ec99ea9b1e37a9af to your computer and use it in GitHub Desktop.
class PodioAbstractItem < Podio::Item
def self.fetch_all_items(app_id)
Podio::Item.find_by_filter_values(app_id)
end
end
class PodioBillingItem < PodioAbstractItem
APP_ID = 667788.freeze
def self.initialize_data(APP_ID)
fetch_all_items(APP_ID)
end
end
class PodioCustomerItem < PodioAbstractItem
APP_ID = 112233.freeze
def self.initialize_data(APP_ID)
fetch_all_items(APP_ID)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment