Class: Moov::Models::Components::ScheduleResponse
- Inherits:
-
Object
- Object
- Moov::Models::Components::ScheduleResponse
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/scheduleresponse.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(destination_account_id:, mode:, owner_account_id:, partner_account_id:, schedule_id:, source_account_id:, created_on:, updated_on:, description: nil, occurrences: nil, recur: nil, disabled_on: nil) ⇒ ScheduleResponse
constructor
A new instance of ScheduleResponse.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(destination_account_id:, mode:, owner_account_id:, partner_account_id:, schedule_id:, source_account_id:, created_on:, updated_on:, description: nil, occurrences: nil, recur: nil, disabled_on: nil) ⇒ ScheduleResponse
Returns a new instance of ScheduleResponse.
42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/moov/models/components/scheduleresponse.rb', line 42 def initialize(destination_account_id:, mode:, owner_account_id:, partner_account_id:, schedule_id:, source_account_id:, created_on:, updated_on:, description: nil, occurrences: nil, recur: nil, disabled_on: nil) @destination_account_id = destination_account_id @mode = mode @owner_account_id = owner_account_id @partner_account_id = partner_account_id @schedule_id = schedule_id @source_account_id = source_account_id @created_on = created_on @updated_on = updated_on @description = description @occurrences = occurrences @recur = recur @disabled_on = disabled_on end |
Instance Method Details
#==(other) ⇒ Object
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/moov/models/components/scheduleresponse.rb', line 58 def ==(other) return false unless other.is_a? self.class return false unless @destination_account_id == other.destination_account_id return false unless @mode == other.mode return false unless @owner_account_id == other.owner_account_id return false unless @partner_account_id == other.partner_account_id return false unless @schedule_id == other.schedule_id return false unless @source_account_id == other.source_account_id return false unless @created_on == other.created_on return false unless @updated_on == other.updated_on return false unless @description == other.description return false unless @occurrences == other.occurrences return false unless @recur == other.recur return false unless @disabled_on == other.disabled_on true end |