Class: ZohoHub::Campaign

Inherits:
BaseRecord show all
Defined in:
lib/zoho_hub/records/campaign.rb

Instance Method Summary collapse

Methods inherited from BaseRecord

all, attribute_translation, attributes, #attributes, #build_response, build_response, create, exists?, find, find_by, #get, get, #new_record?, post, #post, put, #put, request_path, #save, #to_input, #to_params, where, zoho_key_translation

Constructor Details

#initialize(params) ⇒ Campaign

Returns a new instance of Campaign.



9
10
11
12
# File 'lib/zoho_hub/records/campaign.rb', line 9

def initialize(params)
  @id = params[:id]
  @name = params[:Campaign_Name]
end