lib/inforouter/document.rb in inforouter-0.2.0 vs lib/inforouter/document.rb in inforouter-0.2.6

- old
+ new

@@ -1,9 +1,9 @@ module Inforouter #:nodoc class Document < Record # Document ID. - attr_accessor :document_id + attr_accessor :id # Document name. attr_accessor :name # Document path. attr_accessor :path # Document description. @@ -14,14 +14,14 @@ attr_accessor :creation_date # Document modification date. attr_accessor :modification_date # Document checkout date. attr_accessor :checkout_date - # Document checkout by. - attr_accessor :checkout_by - # Document checkout by user name. - attr_accessor :checkout_by_user_name + # Document checkout by username. + attr_accessor :checkout_by_username + # Document checkout by full name. + attr_accessor :checkout_by_full_name # Document size. attr_accessor :size # Document type. attr_accessor :type # Document percent complete. @@ -42,12 +42,16 @@ attr_accessor :registered_by # Document doc type ID. attr_accessor :doc_type_id # Document doc type name. attr_accessor :doc_type_name - # Document version number. - attr_accessor :version_number + # Document version. + attr_accessor :version + # Document published version. + attr_accessor :published_version + # Document type. + attr_accessor :type # @return [Boolean] def exists? response = Inforouter.client.request :document_exists, path_params result = Inforouter::Responses::DocumentExists.parse response @@ -56,9 +60,9 @@ private # @return [Hash] def path_params - { :path => path } + { path: path } end end end