Module: Returnly

Defined in:
lib/spree-returnly.rb,
lib/returnly/engine.rb,
lib/returnly/version.rb,
lib/solidus-returnly.rb,
lib/returnly/refunder.rb,
lib/returnly/refund_presenter.rb,
lib/returnly/refund_calculator.rb,
lib/returnly/refunds_configuration.rb,
lib/returnly/refund/amount_calculator.rb,
lib/returnly/refund/return_item_restock_policy.rb

Defined Under Namespace

Modules: Refund, RefundsConfiguration Classes: Engine, RefundCalculator, RefundPresenter, Refunder

Constant Summary collapse

VERSION =
'0.6.0'

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Returnly)

    the object that the method was called on



9
10
11
# File 'lib/returnly/engine.rb', line 9

def self.configure(&block)
  yield self if block
end

.is_solidus?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/spree-returnly.rb', line 5

def self.is_solidus?
  false
end

.platform_versionObject



9
10
11
# File 'lib/spree-returnly.rb', line 9

def self.platform_version
  Spree.version
end

Instance Method Details

#platform_versionObject



4
5
6
# File 'lib/returnly/version.rb', line 4

def platform_version
  defined?(Solidus)
end