Sha256: 282f880b0ed75283606553f0fd42b44c620b55154f777bffa84a82afe1542d16

Contents?: true

Size: 475 Bytes

Versions: 5

Compression:

Stored size: 475 Bytes

Contents

module Rbox
  module Response
    class Ticket
      include Base

      def initialize(*arg)
        super(*arg)
        @client.ticket = ticket
      end

      def ticket
        @body_response['ticket']
      end

      def authentization_url
        "https://www.box.net/api/1.0/auth/#{ticket}"
      end

      def auth_token
        @client.auth_token(ticket)
      end

      def attributes
        { :ticket => @body_response['ticket'] }
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rbox-0.1.4 lib/rbox/response/authentication/ticket.rb
rbox-0.1.3 lib/rbox/response/authentication/ticket.rb
rbox-0.1.2 lib/rbox/response/authentication/ticket.rb
rbox-0.1.1 lib/rbox/response/authentication/ticket.rb
rbox-0.1.0 lib/rbox/response/authentication/ticket.rb