Class: Rafflesia::CombinedSearchPromotionCandidate
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CombinedSearchPromotionCandidate
- 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
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#index_version ⇒ Object
Returns the value of attribute index_version.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#target_family ⇒ Object
Returns the value of attribute target_family.
Instance Method Summary collapse
-
#initialize(json) ⇒ CombinedSearchPromotionCandidate
constructor
A new instance of CombinedSearchPromotionCandidate.
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
#domain ⇒ Object
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_version ⇒ Object
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 |
#namespace ⇒ Object
Returns the value of attribute namespace.
16 17 18 |
# File 'lib/rafflesia/search/combined_search_promotion_candidate.rb', line 16 def namespace @namespace end |
#reason ⇒ Object
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_family ⇒ Object
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 |