Class: Zonesync::Generate

Inherits:
Struct
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/zonesync/generate.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#destinationObject

Returns the value of attribute destination

Returns:

  • (Object)

    the current value of destination



5
6
7
# File 'lib/zonesync/generate.rb', line 5

def destination
  @destination
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



5
6
7
# File 'lib/zonesync/generate.rb', line 5

def source
  @source
end

Instance Method Details

#callObject



9
10
11
12
# File 'lib/zonesync/generate.rb', line 9

def call
  destination.write(source.read)
  nil
end