Re: [Pharo-users] NeoJSON Parsing Nested Objects

2014-04-09 Thread Esteban A. Maringolo
It's basic but it works. :) THanks sean! Esteban A. Maringolo 2014-04-09 18:07 GMT-03:00 Sean P. DeNigris : > Esteban A. Maringolo wrote I'm wrapping the Digital Ocean API. >>> Cool ! >> +1 > > The embryo is alive. See documentation at > http://smalltalkhub.com/#!/~SeanDeNigris/DigitalOcean

Re: [Pharo-users] NeoJSON Parsing Nested Objects

2014-04-09 Thread Sean P. DeNigris
Esteban A. Maringolo wrote >>> I'm wrapping the Digital Ocean API. >> Cool ! > +1 The embryo is alive. See documentation at http://smalltalkhub.com/#!/~SeanDeNigris/DigitalOcean A few supported operations: DoDroplet allActive. DoDroplet allActive detect: [ :e | e name = 'mycooldomain.org' ]. DoDr

Re: [Pharo-users] NeoJSON Parsing Nested Objects

2014-04-09 Thread Sven Van Caekenberghe
On 09 Apr 2014, at 19:28, Sean P. DeNigris wrote: > Sean P. DeNigris wrote >> I'd like to convert them to DropletSize objects > > Duh :-P > > reader for: DoResponse do: [ :m | > m mapInstVar: #status. > (m mapInstVar: #contents to: #sizes) valueSchema: > #ArrayOfD

Re: [Pharo-users] NeoJSON Parsing Nested Objects

2014-04-09 Thread Esteban A. Maringolo
2014-04-09 14:56 GMT-03:00 Sven Van Caekenberghe : > > On 09 Apr 2014, at 19:18, Sean P. DeNigris wrote: > >> I'm wrapping the Digital Ocean API. > > Cool ! +1 I use it for my Pharo hosting too (plus a JIRA instance on other droplet). Anybody using Supervisord or anything similar tool to "manag

Re: [Pharo-users] NeoJSON Parsing Nested Objects

2014-04-09 Thread Sven Van Caekenberghe
On 09 Apr 2014, at 19:18, Sean P. DeNigris wrote: > I'm wrapping the Digital Ocean API. Cool !

Re: [Pharo-users] NeoJSON Parsing Nested Objects

2014-04-09 Thread Sean P. DeNigris
Sean P. DeNigris wrote > I'd like to convert them to DropletSize objects Duh :-P reader for: DoResponse do: [ :m | m mapInstVar: #status. (m mapInstVar: #contents to: #sizes) valueSchema: #ArrayOfDropletSizes ]. - Cheers, Sean -- View this message in conte

[Pharo-users] NeoJSON Parsing Nested Objects

2014-04-09 Thread Sean P. DeNigris
I'm wrapping the Digital Ocean API. This particular response has a status, and an array of droplet sizes. For example: '{"status":"OK","sizes":[{"id":66,"name":"512MB","slug":"512mb","memory":512,"cpu":1,"disk":20,"cost_per_hour":0.00744,"cost_per_month":"5.0"},{"id":63,"name":"1GB","slug":"1gb","