Class: Cdek::Resources::Base
- Inherits:
-
Object
- Object
- Cdek::Resources::Base
- Defined in:
- lib/cdek/resources/base.rb
Overview
Базовый класс для high-level ресурсов CDEK API.
Хранит ссылку на клиент. Конкретные ресурсы (Locations, Deliverypoints и т.п.) наследуются и проксируют вызовы в client.get/post/…
Direct Known Subclasses
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(client = Cdek.client) ⇒ Base
constructor
A new instance of Base.
Constructor Details
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
10 11 12 |
# File 'lib/cdek/resources/base.rb', line 10 def client @client end |