Fix undefined method `interface' error

Closes #11
Merge pull request #19 from andreychernih/f/fix-interface-error

Fix undefined method `interface' error