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