Class: Zernio::GetTrackingTagStoreInstall200ResponseInstall
- Inherits:
-
ApiModelBase
- Object
- ApiModelBase
- Zernio::GetTrackingTagStoreInstall200ResponseInstall
- Defined in:
- lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb
Defined Under Namespace
Classes: EnumAttributeValidator
Instance Attribute Summary collapse
-
#installed ⇒ Object
Shopify: this tag is the one the store fires for its platform.
-
#installed_tag_id ⇒ Object
Shopify only: the tag of the same platform the store fires now (may be a different tag), or null.
-
#method ⇒ Object
WordPress only.
-
#platform ⇒ Object
The store platform.
-
#preflight ⇒ Object
Returns the value of attribute preflight.
-
#shop_domain ⇒ Object
Shopify only.
-
#sidebar_id ⇒ Object
WordPress only: widget area holding the widget.
-
#site_tag_id ⇒ Object
The id the tag carries on the site (see
TrackingTag.siteTagId). -
#site_url ⇒ Object
WordPress only.
-
#store_account_id ⇒ Object
Returns the value of attribute store_account_id.
-
#tag_platform ⇒ Object
Platform of the tag this install is about (e.g.
metaads). -
#tags ⇒ Object
GET only on WordPress, always on Shopify: every Zernio tag on the store, all platforms.
-
#web_pixel_id ⇒ Object
Shopify only: web pixel id, or null when nothing is installed.
-
#widget_id ⇒ Object
WordPress only: widget id, e.g.
Class Method Summary collapse
-
.acceptable_attribute_map ⇒ Object
Returns attribute mapping this model knows about.
-
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about.
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.build_from_hash(attributes) ⇒ Object
Builds the object from hash.
-
.openapi_all_of ⇒ Object
List of class defined in allOf (OpenAPI v3).
-
.openapi_nullable ⇒ Object
List of attributes with nullable: true.
-
.openapi_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ GetTrackingTagStoreInstall200ResponseInstall
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Methods inherited from ApiModelBase
_deserialize, #_to_hash, #to_body, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ GetTrackingTagStoreInstall200ResponseInstall
Initializes the object
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 145 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::GetTrackingTagStoreInstall200ResponseInstall` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| if (!acceptable_attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::GetTrackingTagStoreInstall200ResponseInstall`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'store_account_id') self.store_account_id = attributes[:'store_account_id'] end if attributes.key?(:'platform') self.platform = attributes[:'platform'] end if attributes.key?(:'tag_platform') self.tag_platform = attributes[:'tag_platform'] end if attributes.key?(:'site_tag_id') self.site_tag_id = attributes[:'site_tag_id'] end if attributes.key?(:'installed') self.installed = attributes[:'installed'] end if attributes.key?(:'shop_domain') self.shop_domain = attributes[:'shop_domain'] end if attributes.key?(:'installed_tag_id') self.installed_tag_id = attributes[:'installed_tag_id'] end if attributes.key?(:'tags') if (value = attributes[:'tags']).is_a?(Array) self. = value end end if attributes.key?(:'web_pixel_id') self.web_pixel_id = attributes[:'web_pixel_id'] end if attributes.key?(:'site_url') self.site_url = attributes[:'site_url'] end if attributes.key?(:'method') self.method = attributes[:'method'] end if attributes.key?(:'widget_id') self. = attributes[:'widget_id'] end if attributes.key?(:'sidebar_id') self. = attributes[:'sidebar_id'] end if attributes.key?(:'preflight') self.preflight = attributes[:'preflight'] end end |
Instance Attribute Details
#installed ⇒ Object
Shopify: this tag is the one the store fires for its platform. WordPress: the Zernio widget for this tag is in an active widget area with its script intact.
30 31 32 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 30 def installed @installed end |
#installed_tag_id ⇒ Object
Shopify only: the tag of the same platform the store fires now (may be a different tag), or null.
36 37 38 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 36 def installed_tag_id @installed_tag_id end |
#method ⇒ Object
WordPress only.
48 49 50 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 48 def method @method end |
#platform ⇒ Object
The store platform.
21 22 23 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 21 def platform @platform end |
#preflight ⇒ Object
Returns the value of attribute preflight.
56 57 58 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 56 def preflight @preflight end |
#shop_domain ⇒ Object
Shopify only.
33 34 35 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 33 def shop_domain @shop_domain end |
#sidebar_id ⇒ Object
WordPress only: widget area holding the widget.
54 55 56 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 54 def @sidebar_id end |
#site_tag_id ⇒ Object
The id the tag carries on the site (see TrackingTag.siteTagId).
27 28 29 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 27 def site_tag_id @site_tag_id end |
#site_url ⇒ Object
WordPress only.
45 46 47 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 45 def site_url @site_url end |
#store_account_id ⇒ Object
Returns the value of attribute store_account_id.
18 19 20 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 18 def store_account_id @store_account_id end |
#tag_platform ⇒ Object
Platform of the tag this install is about (e.g. metaads).
24 25 26 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 24 def tag_platform @tag_platform end |
#tags ⇒ Object
GET only on WordPress, always on Shopify: every Zernio tag on the store, all platforms.
39 40 41 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 39 def @tags end |
#web_pixel_id ⇒ Object
Shopify only: web pixel id, or null when nothing is installed.
42 43 44 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 42 def web_pixel_id @web_pixel_id end |
#widget_id ⇒ Object
WordPress only: widget id, e.g. custom_html-3.
51 52 53 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 51 def @widget_id end |
Class Method Details
.acceptable_attribute_map ⇒ Object
Returns attribute mapping this model knows about
101 102 103 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 101 def self.acceptable_attribute_map attribute_map end |
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
106 107 108 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 106 def self.acceptable_attributes acceptable_attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 81 def self.attribute_map { :'store_account_id' => :'storeAccountId', :'platform' => :'platform', :'tag_platform' => :'tagPlatform', :'site_tag_id' => :'siteTagId', :'installed' => :'installed', :'shop_domain' => :'shopDomain', :'installed_tag_id' => :'installedTagId', :'tags' => :'tags', :'web_pixel_id' => :'webPixelId', :'site_url' => :'siteUrl', :'method' => :'method', :'widget_id' => :'widgetId', :'sidebar_id' => :'sidebarId', :'preflight' => :'preflight' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 293 def self.build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) transformed_hash = {} openapi_types.each_pair do |key, type| if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[attribute_map[key]].is_a?(Array) transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end elsif !attributes[attribute_map[key]].nil? transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end new(transformed_hash) end |
.openapi_all_of ⇒ Object
List of class defined in allOf (OpenAPI v3)
137 138 139 140 141 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 137 def self.openapi_all_of [ :'StorePixelInstall' ] end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
131 132 133 134 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 131 def self.openapi_nullable Set.new([ ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 111 def self.openapi_types { :'store_account_id' => :'String', :'platform' => :'String', :'tag_platform' => :'String', :'site_tag_id' => :'String', :'installed' => :'Boolean', :'shop_domain' => :'String', :'installed_tag_id' => :'String', :'tags' => :'Array<StorePixelInstallTagsInner>', :'web_pixel_id' => :'String', :'site_url' => :'String', :'method' => :'String', :'widget_id' => :'String', :'sidebar_id' => :'String', :'preflight' => :'GetTrackingTagStoreInstall200ResponseInstallAllOfPreflight' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 259 def ==(o) return true if self.equal?(o) self.class == o.class && store_account_id == o.store_account_id && platform == o.platform && tag_platform == o.tag_platform && site_tag_id == o.site_tag_id && installed == o.installed && shop_domain == o.shop_domain && installed_tag_id == o.installed_tag_id && == o. && web_pixel_id == o.web_pixel_id && site_url == o.site_url && method == o.method && == o. && == o. && preflight == o.preflight end |
#eql?(o) ⇒ Boolean
280 281 282 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 280 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
286 287 288 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 286 def hash [store_account_id, platform, tag_platform, site_tag_id, installed, shop_domain, installed_tag_id, , web_pixel_id, site_url, method, , , preflight].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
220 221 222 223 224 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 220 def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end |
#to_hash ⇒ Hash
Returns the object in the form of hash
315 316 317 318 319 320 321 322 323 324 325 326 327 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 315 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? is_nullable = self.class.openapi_nullable.include?(attr) next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end hash[param] = _to_hash(value) end hash end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
228 229 230 231 232 233 234 235 |
# File 'lib/zernio-sdk/models/get_tracking_tag_store_install200_response_install.rb', line 228 def valid? warn '[DEPRECATED] the `valid?` method is obsolete' platform_validator = EnumAttributeValidator.new('String', ["shopify", "wordpress"]) return false unless platform_validator.valid?(@platform) method_validator = EnumAttributeValidator.new('String', ["wordpress_widget"]) return false unless method_validator.valid?(@method) true end |