Class: NotSoEasyHubspot::Base
- Inherits:
-
Object
- Object
- NotSoEasyHubspot::Base
- Defined in:
- lib/not_so_easy_hubspot/base.rb
Overview
class NotSoEasyHubspot::Base
Class Method Summary collapse
Class Method Details
.email?(string) ⇒ Boolean
12 13 14 |
# File 'lib/not_so_easy_hubspot/base.rb', line 12 def email?(string) URI::MailTo::EMAIL_REGEXP.match?(string) end |
.headers ⇒ Object
7 8 9 10 |
# File 'lib/not_so_easy_hubspot/base.rb', line 7 def headers { "Content-Type" => 'application/json', "Authorization" => "Bearer #{NotSoEasyHubspot.configuration.access_token}" } end |