service_presenter.rb 231 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
class ServicePresenter < BasePresenter
  def initialize(service)
    @service = service
  end

  def as_json
    {
      :provider => @service.provider
    }
  end

  def to_json(options = {})
    as_json.to_json(options)
  end
end