Class: BookingsyncPortal::Write::EnsureSourceExists
- Inherits:
-
Object
- Object
- BookingsyncPortal::Write::EnsureSourceExists
- Defined in:
- app/synchronizers/bookingsync_portal/write/ensure_source_exists.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
readonly
Returns the value of attribute account.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(account) ⇒ EnsureSourceExists
constructor
A new instance of EnsureSourceExists.
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) @account = account end |
Instance Attribute Details
#account ⇒ Object (readonly)
Returns the value of attribute account.
2 3 4 |
# File 'app/synchronizers/bookingsync_portal/write/ensure_source_exists.rb', line 2 def account @account end |
Instance Method Details
#call ⇒ Object
8 9 10 |
# File 'app/synchronizers/bookingsync_portal/write/ensure_source_exists.rb', line 8 def call blank_source? ? update_source : true end |