Class: Awis::Models::ContentData
- Inherits:
-
BaseEntity
- Object
- BaseEntity
- Awis::Models::ContentData
- Defined in:
- lib/awis/models/url_info.rb
Instance Attribute Summary collapse
-
#adult_content ⇒ Object
Returns the value of attribute adult_content.
-
#data_url ⇒ Object
Returns the value of attribute data_url.
-
#language_locale ⇒ Object
Returns the value of attribute language_locale.
-
#links_in_count ⇒ Object
Returns the value of attribute links_in_count.
-
#online_since ⇒ Object
Returns the value of attribute online_since.
-
#owned_domains ⇒ Object
Returns the value of attribute owned_domains.
-
#site_description ⇒ Object
Returns the value of attribute site_description.
-
#site_title ⇒ Object
Returns the value of attribute site_title.
-
#speed_median_load_time ⇒ Object
Returns the value of attribute speed_median_load_time.
-
#speed_percentile ⇒ Object
Returns the value of attribute speed_percentile.
Instance Method Summary collapse
-
#initialize(options) ⇒ ContentData
constructor
A new instance of ContentData.
- #owned_domains_relationship_collections(item_object, items, items_count, kclass) ⇒ Object
Methods included from Utils::Variable
Constructor Details
#initialize(options) ⇒ ContentData
Returns a new instance of ContentData.
318 319 320 321 322 323 |
# File 'lib/awis/models/url_info.rb', line 318 def initialize() @owned_domains = [] owned_domain_objects = .delete(:owned_domains) super() owned_domains_relationship_collections(@owned_domains, owned_domain_objects, 2, OwnedDomain) end |
Instance Attribute Details
#adult_content ⇒ Object
Returns the value of attribute adult_content.
315 316 317 |
# File 'lib/awis/models/url_info.rb', line 315 def adult_content @adult_content end |
#data_url ⇒ Object
Returns the value of attribute data_url.
315 316 317 |
# File 'lib/awis/models/url_info.rb', line 315 def data_url @data_url end |
#language_locale ⇒ Object
Returns the value of attribute language_locale.
315 316 317 |
# File 'lib/awis/models/url_info.rb', line 315 def language_locale @language_locale end |
#links_in_count ⇒ Object
Returns the value of attribute links_in_count.
315 316 317 |
# File 'lib/awis/models/url_info.rb', line 315 def links_in_count @links_in_count end |
#online_since ⇒ Object
Returns the value of attribute online_since.
315 316 317 |
# File 'lib/awis/models/url_info.rb', line 315 def online_since @online_since end |
#owned_domains ⇒ Object
Returns the value of attribute owned_domains.
315 316 317 |
# File 'lib/awis/models/url_info.rb', line 315 def owned_domains @owned_domains end |
#site_description ⇒ Object
Returns the value of attribute site_description.
315 316 317 |
# File 'lib/awis/models/url_info.rb', line 315 def site_description @site_description end |
#site_title ⇒ Object
Returns the value of attribute site_title.
315 316 317 |
# File 'lib/awis/models/url_info.rb', line 315 def site_title @site_title end |
#speed_median_load_time ⇒ Object
Returns the value of attribute speed_median_load_time.
315 316 317 |
# File 'lib/awis/models/url_info.rb', line 315 def speed_median_load_time @speed_median_load_time end |
#speed_percentile ⇒ Object
Returns the value of attribute speed_percentile.
315 316 317 |
# File 'lib/awis/models/url_info.rb', line 315 def speed_percentile @speed_percentile end |
Instance Method Details
#owned_domains_relationship_collections(item_object, items, items_count, kclass) ⇒ Object
325 326 327 328 329 330 |
# File 'lib/awis/models/url_info.rb', line 325 def owned_domains_relationship_collections(item_object, items, items_count, kclass) return if items.empty? all_items = {}.array_slice_merge!(:item, items, items_count) all_items.map { |item| item_object << kclass.new(item) } end |