Class: Rafflesia::DatabaseJoinCandidateRejection
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatabaseJoinCandidateRejection
- Defined in:
- lib/rafflesia/database_join_candidates/database_join_candidate_rejection.rb
Constant Summary collapse
- HASH_ATTRS =
{ detail: :detail, from_relation: :from_relation, reason_codes: :reason_codes, to_relation: :to_relation }.freeze
Instance Attribute Summary collapse
-
#detail ⇒ Object
Returns the value of attribute detail.
-
#from_relation ⇒ Object
Returns the value of attribute from_relation.
-
#reason_codes ⇒ Object
Returns the value of attribute reason_codes.
-
#to_relation ⇒ Object
Returns the value of attribute to_relation.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatabaseJoinCandidateRejection
constructor
A new instance of DatabaseJoinCandidateRejection.
Constructor Details
#initialize(json) ⇒ DatabaseJoinCandidateRejection
Returns a new instance of DatabaseJoinCandidateRejection.
21 22 23 24 25 26 27 28 |
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_rejection.rb', line 21 def initialize(json) super() hash = self.class.normalize(json) @detail = hash[:detail] @from_relation = hash[:from_relation] @reason_codes = (hash[:reason_codes] || []) @to_relation = hash[:to_relation] end |
Instance Attribute Details
#detail ⇒ Object
Returns the value of attribute detail.
15 16 17 |
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_rejection.rb', line 15 def detail @detail end |
#from_relation ⇒ Object
Returns the value of attribute from_relation.
15 16 17 |
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_rejection.rb', line 15 def from_relation @from_relation end |
#reason_codes ⇒ Object
Returns the value of attribute reason_codes.
15 16 17 |
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_rejection.rb', line 15 def reason_codes @reason_codes end |
#to_relation ⇒ Object
Returns the value of attribute to_relation.
15 16 17 |
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_rejection.rb', line 15 def to_relation @to_relation end |