Class: PipedriveRuby::Base
- Inherits:
-
Object
- Object
- PipedriveRuby::Base
- Extended by:
- Forwardable
- Defined in:
- lib/resources/base.rb
Overview
responsable for interface all resources with PipedriveClient
Direct Known Subclasses
Activities, ActivityFields, ActivityTypes, Authorizations, Currencies, DealFields, Deals, Organizations, Products, PushNotifications, Recents, SearchResults, UserConnections, UserSettings
Instance Attribute Summary collapse
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#endpoints ⇒ Object
readonly
Returns the value of attribute endpoints.
Instance Method Summary collapse
-
#initialize(pipedrive_client) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(pipedrive_client) ⇒ Base
Returns a new instance of Base
8 9 10 11 12 |
# File 'lib/resources/base.rb', line 8 def initialize(pipedrive_client) class_name = self.class.name @client = pipedrive_client @endpoints = PipedriveRuby::HttpFactory.new(class_name, @client) end |
Instance Attribute Details
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url
6 7 8 |
# File 'lib/resources/base.rb', line 6 def base_url @base_url end |
#client ⇒ Object (readonly)
Returns the value of attribute client
6 7 8 |
# File 'lib/resources/base.rb', line 6 def client @client end |
#endpoints ⇒ Object (readonly)
Returns the value of attribute endpoints
6 7 8 |
# File 'lib/resources/base.rb', line 6 def endpoints @endpoints end |