class PipeRocket::Organization
Attributes
id[RW]
Public Class Methods
key_field_hash()
click to toggle source
Returns hash {custom_field_key: PipeRocket::Field
object}
# File lib/pipe_rocket/organization.rb, line 6 def self.key_field_hash @@key_field_hash ||= Pipedrive.organization_fields.key_field_hash end
new(hash)
click to toggle source
Calls superclass method
PipeRocket::Entity::new
# File lib/pipe_rocket/organization.rb, line 10 def initialize(hash) super(hash.except(*Organization.key_field_hash.keys)) @id = hash['value'] if hash['value'].present? assign_custom_fields(Organization.key_field_hash, hash) end