Class: SolidusGraphqlApi::Queries::Address::CountryQuery

Inherits:
Object
  • Object
show all
Defined in:
lib/solidus_graphql_api/queries/address/country_query.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(address:) ⇒ CountryQuery

Returns a new instance of CountryQuery.



9
10
11
# File 'lib/solidus_graphql_api/queries/address/country_query.rb', line 9

def initialize(address:)
  @address = address
end

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address.



7
8
9
# File 'lib/solidus_graphql_api/queries/address/country_query.rb', line 7

def address
  @address
end

Instance Method Details

#callObject



13
14
15
# File 'lib/solidus_graphql_api/queries/address/country_query.rb', line 13

def call
  SolidusGraphqlApi::BatchLoader.for(address, :country)
end