class Laximo::Am

Constants

DEFAULT_OPTIONS

Public Class Methods

new() click to toggle source
# File lib/laximo/am.rb, line 15
def initialize

  @request = ::Laximo::Request.new(
    ::Laximo.options.am_soap_endpoint,
    ::Laximo.options.am_soap_action
  )

end

Public Instance Methods

find_detail( detail_id, options: DEFAULT_OPTIONS, locale: ::Laximo.options.locale ) click to toggle source
# File lib/laximo/am.rb, line 58
def find_detail(
  detail_id,
  options:  DEFAULT_OPTIONS,
  locale:   ::Laximo.options.locale
)

  resp = ::Laximo::Query.
    new('FindDetail').
    locale(locale).
    detail_id(detail_id).
    options(options).
    call(@request)

  ::Laximo::Respond::FindDetail.new(resp)

end
find_oem( oem, brand: nil, options: DEFAULT_OPTIONS, locale: ::Laximo.options.locale ) click to toggle source
# File lib/laximo/am.rb, line 24
def find_oem(
  oem,
  brand:    nil,
  options:  DEFAULT_OPTIONS,
  locale:   ::Laximo.options.locale
)

  resp = ::Laximo::Query.
    new('FindOEM').
    locale(locale).
    brand(brand).
    oem(oem).
    options(options).
    call(@request)

  ::Laximo::Respond::FindOem.new(resp)

end
find_oem_correction( oem, brand: nil, locale: ::Laximo.options.locale ) click to toggle source
# File lib/laximo/am.rb, line 75
def find_oem_correction(
  oem,
  brand:    nil,
  locale:   ::Laximo.options.locale
)

  resp = ::Laximo::Query.
    new('FindOEMCorrection').
    locale(locale).
    brand(brand).
    oem(oem).
    call(@request)

  ::Laximo::Respond::FindOemCorrection.new(resp)

end
find_replacements( detail_id, locale: ::Laximo.options.locale ) click to toggle source
# File lib/laximo/am.rb, line 43
def find_replacements(
  detail_id,
  locale: ::Laximo.options.locale
)

  resp = ::Laximo::Query.
    new('FindReplacements').
    locale(locale).
    detail_id(detail_id).
    call(@request)

  ::Laximo::Respond::FindReplacements.new(resp)

end
list_manufacturer( locale: ::Laximo.options.locale ) click to toggle source
# File lib/laximo/am.rb, line 107
def list_manufacturer(
  locale: ::Laximo.options.locale
)

  resp = ::Laximo::Query.
    new('ListManufacturer').
    locale(locale).
    call(@request)

  ::Laximo::Respond::ListManufacturer.new(resp)

end
manufacturer_info( manufacturer_id, locale: ::Laximo.options.locale ) click to toggle source
# File lib/laximo/am.rb, line 92
def manufacturer_info(
  manufacturer_id,
  locale: ::Laximo.options.locale
)

  resp = ::Laximo::Query.
    new('ManufacturerInfo').
    locale(locale).
    manufacturer_id(manufacturer_id).
    call(@request)

  ::Laximo::Respond::Manufacturer_Info.new(resp)

end