Sha256: fb83fb8abd99524c9e240ce537b9556b22616aeade8d2aea18168166832a316c

Contents?: true

Size: 315 Bytes

Versions: 7

Compression:

Stored size: 315 Bytes

Contents

module LinkedIn
  class Error < LinkedIn::Base

    def status
      @doc.xpath('//status').text.to_i
    end

    def timestamp
      @doc.xpath('//timestamp').text.to_i
    end

    def code
      @doc.xpath('//error-coce').text.to_i
    end

    def message
      @doc.xpath('//message').text
    end

  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
linkedin-idkmybffjill-0.2.3 lib/linked_in/error.rb
linkedin-idkmybffjill-0.2.2 lib/linked_in/error.rb
linkedin-idkmybffjill-0.2.1 lib/linked_in/error.rb
linkedin-idkmybffjill-0.2.0 lib/linked_in/error.rb
linkedin-0.2.2 lib/linked_in/error.rb
linkedin-0.2.1 lib/linked_in/error.rb
linkedin-idkmybffjill-0.1.9 lib/linked_in/error.rb