Class: ActionKitApi::Page

Inherits:
ApiDataModel show all
Includes:
Searchable
Defined in:
lib/action_kit_api/page.rb

Overview

Please note that this class should almost never be directly called every ‘real’ page is a specific sub-page type that should extend this class. Please refer to the ActionKit API documentation for more information about pages

Instance Attribute Summary collapse

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) ⇒ Page

Returns a new instance of Page.



19
20
21
22
23
24
25
26
27
# File 'lib/action_kit_api/page.rb', line 19

def initialize(*args)
  @required_attrs ||= []
  @required_attrs.concat([:name, :title, :type])

  @read_only_attrs ||= []
  @read_only_attrs.concat([:hosted_with])

  super
end

Instance Attribute Details

#canonical_urlObject

Other/Active



15
16
17
# File 'lib/action_kit_api/page.rb', line 15

def canonical_url
  @canonical_url
end

#custom_fieldsObject

Other/Active



15
16
17
# File 'lib/action_kit_api/page.rb', line 15

def custom_fields
  @custom_fields
end

#goalObject

Other/Active



15
16
17
# File 'lib/action_kit_api/page.rb', line 15

def goal
  @goal
end

#goal_typeObject

Other/Active



15
16
17
# File 'lib/action_kit_api/page.rb', line 15

def goal_type
  @goal_type
end

#hiddenObject

Other/Active



15
16
17
# File 'lib/action_kit_api/page.rb', line 15

def hidden
  @hidden
end

#hosted_withObject

Other/Active



15
16
17
# File 'lib/action_kit_api/page.rb', line 15

def hosted_with
  @hosted_with
end

#idObject

Required



12
13
14
# File 'lib/action_kit_api/page.rb', line 12

def id
  @id
end

#langObject

Other/Active



15
16
17
# File 'lib/action_kit_api/page.rb', line 15

def lang
  @lang
end

#listObject

Other/Active



15
16
17
# File 'lib/action_kit_api/page.rb', line 15

def list
  @list
end

#multilingual_campaignObject

Other/Active



15
16
17
# File 'lib/action_kit_api/page.rb', line 15

def multilingual_campaign
  @multilingual_campaign
end

#nameObject

Required



12
13
14
# File 'lib/action_kit_api/page.rb', line 12

def name
  @name
end

#required_fieldsObject

Other/Active



15
16
17
# File 'lib/action_kit_api/page.rb', line 15

def required_fields
  @required_fields
end

#statusObject

Other/Active



15
16
17
# File 'lib/action_kit_api/page.rb', line 15

def status
  @status
end

#tagsObject

Other/Active



15
16
17
# File 'lib/action_kit_api/page.rb', line 15

def tags
  @tags
end

#titleObject

Required



12
13
14
# File 'lib/action_kit_api/page.rb', line 12

def title
  @title
end

#typeObject

Required



12
13
14
# File 'lib/action_kit_api/page.rb', line 12

def type
  @type
end

#urlObject

Other/Active



15
16
17
# File 'lib/action_kit_api/page.rb', line 15

def url
  @url
end