Class: DeepL::StyleRuleApi
- Inherits:
-
Object
- Object
- DeepL::StyleRuleApi
- Defined in:
- lib/deepl/style_rule_api.rb
Instance Method Summary collapse
-
#initialize(api, options = {}) ⇒ StyleRuleApi
constructor
A new instance of StyleRuleApi.
- #list(options = {}) ⇒ Object
Constructor Details
#initialize(api, options = {}) ⇒ StyleRuleApi
Returns a new instance of StyleRuleApi.
8 9 10 11 |
# File 'lib/deepl/style_rule_api.rb', line 8 def initialize(api, = {}) @api = api = end |
Instance Method Details
#list(options = {}) ⇒ Object
13 14 15 |
# File 'lib/deepl/style_rule_api.rb', line 13 def list( = {}) DeepL::Requests::StyleRule::List.new(@api, ).request end |