Class: ShopifyTheme::APIChecker

Inherits:
Object
  • Object
show all
Defined in:
lib/shopify_theme/api_checker.rb

Defined Under Namespace

Classes: APIResult

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ APIChecker

Returns a new instance of APIChecker.



30
31
32
# File 'lib/shopify_theme/api_checker.rb', line 30

def initialize(client)
  @client = client
end

Instance Method Details

#test_connectivityObject



34
35
36
# File 'lib/shopify_theme/api_checker.rb', line 34

def test_connectivity
  return APIResult.new(client.get_index)
end