Class: Showroom::ProductImage

Inherits:
Resource
  • Object
show all
Defined in:
lib/showroom/models/product_image.rb

Overview

Represents a Shopify product image.

Examples:

image = ProductImage.new('id' => 1, 'src' => 'https://example.com/img.jpg')
image.src # => "https://example.com/img.jpg"

Instance Attribute Summary

Attributes inherited from Resource

#attrs, #client

Method Summary

Methods inherited from Resource

#==, #[], has_many, has_one, #initialize, #inspect, main_attr_keys, main_attrs, #method_missing, #respond_to_missing?, #to_h

Constructor Details

This class inherits a constructor from Showroom::Resource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Showroom::Resource