Class: Showroom::Search::ArticleSuggestion

Inherits:
Suggestion show all
Defined in:
lib/showroom/models/search/article_suggestion.rb

Overview

A lean article shape returned by the Shopify search suggest endpoint.

Examples:

suggestion = Showroom::Search::ArticleSuggestion.new('title' => 'How to Choose a Road Bike')
suggestion.title  # => "How to Choose a Road Bike"

Instance Attribute Summary

Attributes inherited from Resource

#attrs, #client

Method Summary

Methods inherited from Suggestion

complete_model_class, #load, #loadable_identifier

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