Class: StackOne::Models::Shared::Offer
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::Offer
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/offer.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(application_id: nil, created_at: nil, currency: nil, id: nil, offer_history: nil, offer_status: nil, remote_application_id: nil, remote_id: nil, salary: nil, start_date: nil, unified_custom_fields: nil, updated_at: nil) ⇒ Offer
constructor
A new instance of Offer.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(application_id: nil, created_at: nil, currency: nil, id: nil, offer_history: nil, offer_status: nil, remote_application_id: nil, remote_id: nil, salary: nil, start_date: nil, unified_custom_fields: nil, updated_at: nil) ⇒ Offer
Returns a new instance of Offer.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/stack_one/models/shared/offer.rb', line 41 def initialize(application_id: nil, created_at: nil, currency: nil, id: nil, offer_history: nil, offer_status: nil, remote_application_id: nil, remote_id: nil, salary: nil, start_date: nil, unified_custom_fields: nil, updated_at: nil) @application_id = application_id @created_at = created_at @currency = currency @id = id @offer_history = offer_history @offer_status = offer_status @remote_application_id = remote_application_id @remote_id = remote_id @salary = salary @start_date = start_date @unified_custom_fields = unified_custom_fields @updated_at = updated_at end |
Instance Method Details
#==(other) ⇒ Object
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/stack_one/models/shared/offer.rb', line 57 def ==(other) return false unless other.is_a? self.class return false unless @application_id == other.application_id return false unless @created_at == other.created_at return false unless @currency == other.currency return false unless @id == other.id return false unless @offer_history == other.offer_history return false unless @offer_status == other.offer_status return false unless @remote_application_id == other.remote_application_id return false unless @remote_id == other.remote_id return false unless @salary == other.salary return false unless @start_date == other.start_date return false unless @unified_custom_fields == other.unified_custom_fields return false unless @updated_at == other.updated_at true end |