Class: Pandexio::DocumentSource
- Inherits:
-
Object
- Object
- Pandexio::DocumentSource
- Defined in:
- lib/http_client.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#id ⇒ Object
Returns the value of attribute id.
-
#location ⇒ Object
Returns the value of attribute location.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ DocumentSource
constructor
A new instance of DocumentSource.
Constructor Details
#initialize(params = {}) ⇒ DocumentSource
Returns a new instance of DocumentSource.
17 18 19 20 21 22 |
# File 'lib/http_client.rb', line 17 def initialize(params = {}) @id = params.fetch(:id, nil) @name = params.fetch(:name, nil) @content = params.fetch(:content, nil) @location = params.fetch(:location, nil) end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
26 27 28 |
# File 'lib/http_client.rb', line 26 def content @content end |
#id ⇒ Object
Returns the value of attribute id.
24 25 26 |
# File 'lib/http_client.rb', line 24 def id @id end |
#location ⇒ Object
Returns the value of attribute location.
27 28 29 |
# File 'lib/http_client.rb', line 27 def location @location end |
#name ⇒ Object
Returns the value of attribute name.
25 26 27 |
# File 'lib/http_client.rb', line 25 def name @name end |