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

Direct Known Subclasses

PetitionPage, SignupPage, UnsubscribePage

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Searchable

included

Methods inherited from ApiDataModel

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

Constructor Details

#initialize(*args) ⇒ Page

Returns a new instance of Page.



18
19
20
21
# File 'lib/action_kit_api/page.rb', line 18

def initialize(*args)
  @required_attrs = [:name, :title, :type]
  super
end

Instance Attribute Details

#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

#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

#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