Class: Pandexio::DocumentSource
- Inherits:
-
Object
- Object
- Pandexio::DocumentSource
- Defined in:
- lib/ent/document_source.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.
5 6 7 8 9 10 |
# File 'lib/ent/document_source.rb', line 5 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.
14 15 16 |
# File 'lib/ent/document_source.rb', line 14 def content @content end |
#id ⇒ Object
Returns the value of attribute id.
12 13 14 |
# File 'lib/ent/document_source.rb', line 12 def id @id end |
#location ⇒ Object
Returns the value of attribute location.
15 16 17 |
# File 'lib/ent/document_source.rb', line 15 def location @location end |
#name ⇒ Object
Returns the value of attribute name.
13 14 15 |
# File 'lib/ent/document_source.rb', line 13 def name @name end |