Class: Newslettre::Identity

Inherits:
APIModule show all
Defined in:
lib/newslettre/identity.rb

Instance Attribute Summary

Attributes inherited from APIModule

#api

Instance Method Summary collapse

Methods inherited from APIModule

#initialize

Constructor Details

This class inherits a constructor from Newslettre::APIModule

Instance Method Details

#add(id, data = {}) ⇒ Object



10
11
12
# File 'lib/newslettre/identity.rb', line 10

def add id, data = {}
  request 'add', data.merge(:identity => id)
end

#delete(id) ⇒ Object



18
19
20
# File 'lib/newslettre/identity.rb', line 18

def delete id
  request 'delete', :identity => id
end

#edit(id, data = {}) ⇒ Object



14
15
16
# File 'lib/newslettre/identity.rb', line 14

def edit id, data = {}
  request 'edit', data.merge(:identity => id)
end

#get(id) ⇒ Object



6
7
8
# File 'lib/newslettre/identity.rb', line 6

def get id
  request 'get', :identity => id
end

#listObject



2
3
4
# File 'lib/newslettre/identity.rb', line 2

def list
  request 'list'
end