4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# File 'lib/unione/client/system.rb', line 4
def info
post 'system/info.json', {}
validate_response({
'type' => 'object', 'required' => ['status', 'user_id', 'email'], 'properties' => {
'status' => {'type' => 'string'},
'user_id' => {'type' => 'integer'},
'email' => {'type' => 'string'},
'accounting' =>
{'type' => 'object', 'required' => ['period_start', 'period_end', 'emails_included', 'emails_sent'], 'properties' => [
'period_start' => {'type' => 'string'},
'period_end' => {'type' => 'string'},
'emails_included' => {'type' => 'integer'},
'emails_sent' => {'type' => 'integer'}
]},
'project_id' => {'type' => 'string'},
'project_name' => {'type' => 'string'}}
})
end
|