Sha256: ceaed1a7ab77e7aaa8fd83b06a85dcf3c74f08f12793e4807ffd910c77a014f3

Contents?: true

Size: 326 Bytes

Versions: 1

Compression:

Stored size: 326 Bytes

Contents

class MoshimoshiRailsHelperStub
  include Rails::MoshimoshiRailsHelper::Helper

  def moshimoshi_tag(email)
    require 'httparty'
    email_address = email.downcase
    hash = Digest::MD5.hexdigest(email_address)
    response = HTTParty.get("http://moshimoshi.me/api/users/show/#{ hash }")
    return response.body
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
moshimoshi-rails-helper-0.0.1 spec/stub.rb