Class: TheCompaniesAPI::Generated::Models::PageContentsPage
- Inherits:
-
Object
- Object
- TheCompaniesAPI::Generated::Models::PageContentsPage
- Defined in:
- lib/thecompaniesapi/generated/models/page_contents_page.rb
Overview
A page content saved as a source for a company context.
Instance Attribute Summary collapse
-
#content ⇒ String
Content.
-
#description ⇒ String
Description.
-
#externals ⇒ Array
Externals.
-
#html ⇒ String
Html.
-
#navigation ⇒ Array
Navigation.
-
#title ⇒ String
Title.
-
#url ⇒ String
Url.
-
#visited_at ⇒ String
VisitedAt.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ PageContentsPage
constructor
Initialize a new PageContentsPage.
-
#to_hash ⇒ Hash
(also: #to_h)
Convert to hash.
Constructor Details
#initialize(data = {}) ⇒ PageContentsPage
Initialize a new PageContentsPage
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/thecompaniesapi/generated/models/page_contents_page.rb', line 39 def initialize(data = {}) @url = data['url'] @content = data['content'] @html = data['html'] @description = data['description'] @title = data['title'] @externals = data['externals'] @navigation = data['navigation'] @visited_at = data['visitedAt'] end |
Instance Attribute Details
#content ⇒ String
Returns content.
15 16 17 |
# File 'lib/thecompaniesapi/generated/models/page_contents_page.rb', line 15 def content @content end |
#description ⇒ String
Returns description.
21 22 23 |
# File 'lib/thecompaniesapi/generated/models/page_contents_page.rb', line 21 def description @description end |
#externals ⇒ Array
Returns externals.
27 28 29 |
# File 'lib/thecompaniesapi/generated/models/page_contents_page.rb', line 27 def externals @externals end |
#html ⇒ String
Returns html.
18 19 20 |
# File 'lib/thecompaniesapi/generated/models/page_contents_page.rb', line 18 def html @html end |
#navigation ⇒ Array
Returns navigation.
30 31 32 |
# File 'lib/thecompaniesapi/generated/models/page_contents_page.rb', line 30 def @navigation end |
#title ⇒ String
Returns title.
24 25 26 |
# File 'lib/thecompaniesapi/generated/models/page_contents_page.rb', line 24 def title @title end |
#url ⇒ String
Returns url.
12 13 14 |
# File 'lib/thecompaniesapi/generated/models/page_contents_page.rb', line 12 def url @url end |
#visited_at ⇒ String
Returns visitedAt.
33 34 35 |
# File 'lib/thecompaniesapi/generated/models/page_contents_page.rb', line 33 def visited_at @visited_at end |
Instance Method Details
#to_hash ⇒ Hash Also known as: to_h
Convert to hash
54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/thecompaniesapi/generated/models/page_contents_page.rb', line 54 def to_hash { 'url' => @url, 'content' => @content, 'html' => @html, 'description' => @description, 'title' => @title, 'externals' => @externals, 'navigation' => @navigation, 'visitedAt' => @visited_at, } end |