Class: Rafflesia::CombinedSearchPromotionCandidate

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/search/combined_search_promotion_candidate.rb

Constant Summary collapse

HASH_ATTRS =
{
  domain: :domain,
  index_version: :index_version,
  namespace: :namespace,
  reason: :reason,
  target_family: :target_family
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ CombinedSearchPromotionCandidate

Returns a new instance of CombinedSearchPromotionCandidate.



23
24
25
26
27
28
29
30
31
# File 'lib/rafflesia/search/combined_search_promotion_candidate.rb', line 23

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @domain = hash[:domain]
  @index_version = hash[:index_version]
  @namespace = hash[:namespace]
  @reason = hash[:reason]
  @target_family = hash[:target_family]
end

Instance Attribute Details

#domainObject

Returns the value of attribute domain.



16
17
18
# File 'lib/rafflesia/search/combined_search_promotion_candidate.rb', line 16

def domain
  @domain
end

#index_versionObject

Returns the value of attribute index_version.



16
17
18
# File 'lib/rafflesia/search/combined_search_promotion_candidate.rb', line 16

def index_version
  @index_version
end

#namespaceObject

Returns the value of attribute namespace.



16
17
18
# File 'lib/rafflesia/search/combined_search_promotion_candidate.rb', line 16

def namespace
  @namespace
end

#reasonObject

Returns the value of attribute reason.



16
17
18
# File 'lib/rafflesia/search/combined_search_promotion_candidate.rb', line 16

def reason
  @reason
end

#target_familyObject

Returns the value of attribute target_family.



16
17
18
# File 'lib/rafflesia/search/combined_search_promotion_candidate.rb', line 16

def target_family
  @target_family
end