Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/pipedrive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def logger

# Organizations
require 'pipedrive/organization_field'
require 'pipedrive/organization_relationship'
require 'pipedrive/organization'

# Filters
Expand Down Expand Up @@ -92,6 +93,7 @@ def logger

# Notes
require 'pipedrive/note'
require 'pipedrive/note_field'

# Users
require 'pipedrive/user'
Expand Down
9 changes: 9 additions & 0 deletions lib/pipedrive/note_field.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module Pipedrive
class NoteField < Base
include ::Pipedrive::Operations::Read

def entity_name
'noteFields'
end
end
end
14 changes: 14 additions & 0 deletions lib/pipedrive/organization_relationship.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# frozen_string_literal: true

module Pipedrive
class OrganizationRelationship < Base
include ::Pipedrive::Operations::Read
include ::Pipedrive::Operations::Create
include ::Pipedrive::Operations::Update
include ::Pipedrive::Operations::Delete

def entity_name
'organizationRelationships'
end
end
end
13 changes: 13 additions & 0 deletions spec/lib/pipedrive/note_field_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe ::Pipedrive::NoteField do
subject { described_class.new('token') }

describe '#entity_name' do
subject { super().entity_name }

it { is_expected.to eq('noteFields') }
end
end
13 changes: 13 additions & 0 deletions spec/lib/pipedrive/organization_relationship_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe ::Pipedrive::OrganizationRelationship do
subject { described_class.new('token') }

describe '#entity_name' do
subject { super().entity_name }

it { is_expected.to eq('organizationRelationships') }
end
end