Module: SendCloud::Domain

Extended by:
Domain
Included in:
Domain
Defined in:
lib/send-cloud/domain.rb

Instance Method Summary collapse

Instance Method Details

#add(params = {}) ⇒ Object

添加



13
14
15
# File 'lib/send-cloud/domain.rb', line 13

def add (params = {})
  SendCloud.post('domain/add', params, [:name])
end

#list(params = {}) ⇒ Object

查询(批量查询)



8
9
10
# File 'lib/send-cloud/domain.rb', line 8

def list (params = {})
  SendCloud.post('domain/list', params, [])
end

#update(params = {}) ⇒ Object

修改



18
19
20
# File 'lib/send-cloud/domain.rb', line 18

def update (params = {})
  SendCloud.post('domain/update', params, [:name, :newName])
end