Sha256: a07cd962bcf79f7d6c558d791ba8231ad4ebb4aac400b43e6e9b18296408cdaa

Contents?: true

Size: 434 Bytes

Versions: 11

Compression:

Stored size: 434 Bytes

Contents

module SendGridWebApi::SubUserModules
  class WhiteLabel < SendGridWebApi::SubUser
    WHITE_LABEL_URL = "apiv2/customer.whitelabel.json"
    
    def get options = {}
      options.merge!({:task => "list"}) unless options[:task]
      query_api(WHITE_LABEL_URL, options)
    end

    def add options = {}
      options.merge!({:task => "append"}) unless options[:task]
      query_api(WHITE_LABEL_URL, options)
    end
    
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sendgrid_webapi-0.2.0 lib/sub_user/white_label.rb
sendgrid_webapi-0.1.2 lib/sub_user/white_label.rb
sendgrid_webapi-0.1.1 lib/sub_user/white_label.rb
sendgrid_webapi-0.1.0 lib/sub_user/white_label.rb
sendgrid_webapi-0.0.8 lib/sub_user/white_label.rb
sendgrid_webapi-0.0.6 lib/sub_user/white_label.rb
sendgrid_webapi-0.0.5 lib/sub_user/white_label.rb
sendgrid_webapi-0.0.4 lib/sub_user/white_label.rb
sendgrid_webapi-0.0.3 lib/sub_user/white_label.rb
sendgrid_webapi-0.0.2 lib/sub_user/white_label.rb
sendgrid_webapi-0.0.1 lib/sub_user/white_label.rb