Skip to content

API objects return nil when dereferenced with non-existing method #1272

@jasonbuehler

Description

@jasonbuehler

Issue summary

When I call a method on a ShopifyAPI api object that doesn't exist it returns nil instead of raising NoMethodError

  • shopify_api version: 13.4
  • Ruby version:
  • Operating system:

Expected behavior

An exception should be raised NoMethodError

Actual behavior

The method call returns nil

Steps to reproduce the problem

  1. Instantiate a ShopifyAPI ruby object (I used an api product)
  2. Dereference with a non-existent method

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions