Class: SolidusGraphqlApi::Types::Variant

Inherits:
Base::RelayNode show all
Defined in:
lib/solidus_graphql_api/types/variant.rb

Instance Method Summary collapse

Methods inherited from Base::Object

remove_field

Instance Method Details

#default_priceObject



22
23
24
# File 'lib/solidus_graphql_api/types/variant.rb', line 22

def default_price
  Queries::Variant::DefaultPriceQuery.new(variant: object).call
end

#imagesObject



26
27
28
# File 'lib/solidus_graphql_api/types/variant.rb', line 26

def images
  Queries::Variant::ImagesQuery.new(variant: object).call
end

#option_valuesObject



30
31
32
# File 'lib/solidus_graphql_api/types/variant.rb', line 30

def option_values
  Queries::Variant::OptionValuesQuery.new(variant: object).call
end

#pricesObject



34
35
36
# File 'lib/solidus_graphql_api/types/variant.rb', line 34

def prices
  Queries::Variant::PricesQuery.new(variant: object).call
end