Class: Pandexio::Document
- Inherits:
-
Object
- Object
- Pandexio::Document
- Defined in:
- lib/http_client.rb
Instance Attribute Summary collapse
-
#content_length ⇒ Object
Returns the value of attribute content_length.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#cover ⇒ Object
Returns the value of attribute cover.
-
#document_id ⇒ Object
Returns the value of attribute document_id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#page_count ⇒ Object
Returns the value of attribute page_count.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Document
constructor
A new instance of Document.
Constructor Details
#initialize(params = {}) ⇒ Document
Returns a new instance of Document.
33 34 35 36 37 38 39 40 |
# File 'lib/http_client.rb', line 33 def initialize(params = {}) @document_id = params.fetch(:document_id, nil) @name = params.fetch(:name, nil) @page_count = params.fetch(:page_count, nil) @content_type = params.fetch(:content_type, nil) @content_length = params.fetch(:content_length, nil) @cover = params.fetch(:cover, nil) end |
Instance Attribute Details
#content_length ⇒ Object
Returns the value of attribute content_length.
46 47 48 |
# File 'lib/http_client.rb', line 46 def content_length @content_length end |
#content_type ⇒ Object
Returns the value of attribute content_type.
45 46 47 |
# File 'lib/http_client.rb', line 45 def content_type @content_type end |
#cover ⇒ Object
Returns the value of attribute cover.
47 48 49 |
# File 'lib/http_client.rb', line 47 def cover @cover end |
#document_id ⇒ Object
Returns the value of attribute document_id.
42 43 44 |
# File 'lib/http_client.rb', line 42 def document_id @document_id end |
#name ⇒ Object
Returns the value of attribute name.
43 44 45 |
# File 'lib/http_client.rb', line 43 def name @name end |
#page_count ⇒ Object
Returns the value of attribute page_count.
44 45 46 |
# File 'lib/http_client.rb', line 44 def page_count @page_count end |