Module: MailinatorClient

Defined in:
lib/mailinator_client/error.rb,
lib/mailinator_client.rb,
lib/mailinator_client/rules.rb,
lib/mailinator_client/stats.rb,
lib/mailinator_client/utils.rb,
lib/mailinator_client/client.rb,
lib/mailinator_client/domains.rb,
lib/mailinator_client/version.rb,
lib/mailinator_client/messages.rb

Overview

The MIT License (MIT)

Copyright © 2024 Manybrain, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Defined Under Namespace

Classes: Client, Domains, Messages, ResponseError, Rules, Stats, Utils

Constant Summary collapse

VERSION =
"1.0.4"

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.clientObject



36
37
38
# File 'lib/mailinator_client.rb', line 36

def self.client
  @client ||= Client.new
end

.method_missing(sym, *args, &block) ⇒ Object



40
41
42
# File 'lib/mailinator_client.rb', line 40

def self.method_missing(sym, *args, &block)
  self.client.__send__(sym, *args, &block)
end

Instance Method Details

#respond_to_missing?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/mailinator_client.rb', line 44

def respond_to_missing?(method_name, include_private = false)
  self.client.respond_to?(method_name, include_private)
end