Class: DeepL::Requests::Glossary::Entries

Inherits:
Base
  • Object
show all
Defined in:
lib/deepl/requests/glossary/entries.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#api, #options, #response

Instance Method Summary collapse

Constructor Details

#initialize(api, id, options = {}) ⇒ Entries

Returns a new instance of Entries.



9
10
11
12
# File 'lib/deepl/requests/glossary/entries.rb', line 9

def initialize(api, id, options = {})
  super(api, options)
  @id = id
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



7
8
9
# File 'lib/deepl/requests/glossary/entries.rb', line 7

def id
  @id
end

Instance Method Details

#requestObject



14
15
16
# File 'lib/deepl/requests/glossary/entries.rb', line 14

def request
  build_entries(*get)
end