Class: ShopifyCLI::Theme::Extension::Syncer::Operation

Inherits:
Struct
  • Object
show all
Defined in:
lib/shopify_cli/theme/extension/syncer/operation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fileObject

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



9
10
11
# File 'lib/shopify_cli/theme/extension/syncer/operation.rb', line 9

def file
  @file
end

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



9
10
11
# File 'lib/shopify_cli/theme/extension/syncer/operation.rb', line 9

def kind
  @kind
end

Instance Method Details

#create?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/shopify_cli/theme/extension/syncer/operation.rb', line 14

def create?
  kind == :create
end

#delete?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/shopify_cli/theme/extension/syncer/operation.rb', line 10

def delete?
  kind == :delete
end