class Reactio::APIEndpoint

Constants

DOMAIN

Attributes

organization[R]

Public Class Methods

new(organization) click to toggle source
# File lib/reactio/api_endpoint.rb, line 9
def initialize(organization)
  @organization = organization
  @base_url = URI::HTTPS.build(host: "#{organization}.#{DOMAIN}")
end

Public Instance Methods

==(other) click to toggle source
# File lib/reactio/api_endpoint.rb, line 18
def ==(other)
  other.instance_of?(self.class) &&
    self.organization == other.organization
end
base_url() click to toggle source
# File lib/reactio/api_endpoint.rb, line 14
def base_url
  @base_url.to_s
end