Class: Pandexio::DocumentSource

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject

Returns the value of attribute content.



26
27
28
# File 'lib/http_client.rb', line 26

def content
  @content
end

#idObject

Returns the value of attribute id.



24
25
26
# File 'lib/http_client.rb', line 24

def id
  @id
end

#locationObject

Returns the value of attribute location.



27
28
29
# File 'lib/http_client.rb', line 27

def location
  @location
end

#nameObject

Returns the value of attribute name.



25
26
27
# File 'lib/http_client.rb', line 25

def name
  @name
end