Module: Ishin::Mixin

Defined in:
lib/ishin/mixin.rb

Overview

Can be used to include the Ishin functionality into your class and provides a ‘.to_hash` method.

Instance Method Summary collapse

Instance Method Details

#to_hash(options = {}) ⇒ Object

Calls ‘Ishin.to_hash` and passes the parameters on.

Parameters:

  • options (Hash) (defaults to: {})

See Also:



8
9
10
# File 'lib/ishin/mixin.rb', line 8

def to_hash(options = {})
  Ishin.to_hash(self, options)
end