Class: Pandexio::DocumentSource

Inherits:
Object
  • Object
show all
Defined in:
lib/ent/document_source.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject

Returns the value of attribute content.



14
15
16
# File 'lib/ent/document_source.rb', line 14

def content
  @content
end

#idObject

Returns the value of attribute id.



12
13
14
# File 'lib/ent/document_source.rb', line 12

def id
  @id
end

#locationObject

Returns the value of attribute location.



15
16
17
# File 'lib/ent/document_source.rb', line 15

def location
  @location
end

#nameObject

Returns the value of attribute name.



13
14
15
# File 'lib/ent/document_source.rb', line 13

def name
  @name
end