Class: Yar::CarrierResource

Inherits:
Resource show all
Defined in:
lib/Yar/resources/carrier.rb,
lib/yar/resources/carrier.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Yar::Resource

Instance Method Details

#info(code:, system: "yandex") ⇒ Object



5
6
7
# File 'lib/Yar/resources/carrier.rb', line 5

def info(code:, system: "yandex")
  Carrier.new get("carrier/?code=#{code}&system=#{system}").body
end