Class: BookingsyncPortal::Write::EnsureSourceExists

Inherits:
Object
  • Object
show all
Defined in:
app/synchronizers/bookingsync_portal/write/ensure_source_exists.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account) ⇒ EnsureSourceExists

Returns a new instance of EnsureSourceExists.



4
5
6
# File 'app/synchronizers/bookingsync_portal/write/ensure_source_exists.rb', line 4

def initialize()
  @account = 
end

Instance Attribute Details

#accountObject (readonly)

Returns the value of attribute account.



2
3
4
# File 'app/synchronizers/bookingsync_portal/write/ensure_source_exists.rb', line 2

def 
  @account
end

Instance Method Details

#callObject



8
9
10
# File 'app/synchronizers/bookingsync_portal/write/ensure_source_exists.rb', line 8

def call
  blank_source? ? update_source : true
end