Sha256: 84a03337a757802915694510dca6d9e0038c992a978807b009c4762e5447b94e
Contents?: true
Size: 1.72 KB
Versions: 5
Compression:
Stored size: 1.72 KB
Contents
module AppManager class Config attr_accessor :cache_by_headers attr_accessor :expires_in attr_accessor :enable_caching attr_accessor :plan_features attr_accessor :app_url attr_accessor :shopify_api_key attr_accessor :shopify_api_version attr_accessor :shopify_table_name attr_accessor :shopify_domain_field attr_accessor :plan_id_or_name_field attr_accessor :field_names def initialize @expires_in = 1.day @enable_caching = true @app_url = nil @shopify_api_key = nil @shopify_api_version = nil @shopify_table_name = 'shops' @shopify_domain_field = 'shopify_domain' @plan_id_or_name_field = nil @field_names = { 'name' => 'shopify_domain', # sample example: demo-chirag-parmar.myshopify.com 'shopify_email' => 'email', # chirag.p@hulkapps.com 'shopify_token' => 'shopify_token', 'shopify_plan' => 'plan_name', # partner_test 'plan_id' => 'plan_id', # 1 'created_at' => 'created_at', # 2022-04-15 10:43:05 'trial_activated_at' => 'trial_activated_at', 'email' => 'email' } @fs = AppManager::FailSafe.new end def expires_in @expires_in end def enable_caching @enable_caching end def plan_features @plan_features end def app_url @app_url end def shopify_api_key @shopify_api_key end def shopify_api_version @shopify_api_version end def shopify_table_name @shopify_table_name end def shopify_domain_field @shopify_domain_field end def plan_id_or_name_field @plan_id_or_name_field end def field_names @field_names end end end
Version data entries
5 entries across 5 versions & 1 rubygems