Class: ActionKitApi::EventCreatePage

Inherits:
Page show all
Defined in:
lib/action_kit_api/page_types/event_create.rb

Instance Attribute Summary collapse

Attributes inherited from Page

#canonical_url, #custom_fields, #goal, #goal_type, #hidden, #hosted_with, #id, #lang, #list, #multilingual_campaign, #name, #required_fields, #status, #tags, #title, #type, #url

Attributes inherited from ApiDataModel

#created_at, #updated_at

Instance Method Summary collapse

Methods included from Searchable

included

Methods inherited from ApiDataModel

#safe_hash, #save, #to_hash, #update, #valid?

Constructor Details

#initialize(*args) ⇒ EventCreatePage

Returns a new instance of EventCreatePage.



7
8
9
10
11
12
# File 'lib/action_kit_api/page_types/event_create.rb', line 7

def initialize(*args)
  @type = 'EventCreate'
  @required_attrs = [:campaign_id]
  
  super
end

Instance Attribute Details

#campaign_idObject

Returns the value of attribute campaign_id.



5
6
7
# File 'lib/action_kit_api/page_types/event_create.rb', line 5

def campaign_id
  @campaign_id
end