Class: PipedriveRuby::Base

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/resources/base.rb

Overview

responsable for interface all resources with PipedriveClient

Instance Attribute Summary collapse

Instance Method Summary collapse

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_urlObject (readonly)

Returns the value of attribute base_url


6
7
8
# File 'lib/resources/base.rb', line 6

def base_url
  @base_url
end

#clientObject (readonly)

Returns the value of attribute client


6
7
8
# File 'lib/resources/base.rb', line 6

def client
  @client
end

#endpointsObject (readonly)

Returns the value of attribute endpoints


6
7
8
# File 'lib/resources/base.rb', line 6

def endpoints
  @endpoints
end