adhearsion/punchblock

View on GitHub
lib/punchblock/component/receive_fax.rb

Summary

Maintainability
A
0 mins
Test Coverage
# encoding: utf-8

module Punchblock
  module Component
    class ReceiveFax < ComponentNode
      register :receivefax, :fax

      class Fax < RayoNode
        register :fax, :fax_complete

        attribute :url, String
        attribute :resolution, String
        attribute :pages, Integer
        attribute :size, Integer
      end

      class Complete
        class Finish < Event::Complete::Reason
          register :finish, :fax_complete
        end
      end
    end
  end
end