Class: Showroom::Search::PageSuggestion

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

Overview

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

Examples:

suggestion = Showroom::Search::PageSuggestion.new(
  'title' => 'About Lorem Bikes', 'handle' => 'about-lorem-bikes'
)
suggestion.title  # => "About Lorem Bikes"

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