[LRUG] Serialising a struct

Siddharth Sharma svs at svs.io
Mon Apr 14 08:18:15 PDT 2014


One solution could be to create named classes that mimic AWS response
structs. Marhsal doesn't seem to mind those.

Here's a gist that works: https://gist.github.com/svs/10656956

Bit kludgy but you could hide all the kludginess in a gem and make the
aws-sdk-core-stubs gem.




On Mon, Apr 14, 2014 at 7:54 PM, Stephen Nelson-Smith <sanelson at gmail.com>wrote:

> Hi there,
>
> On Mon, Apr 14, 2014 at 3:20 PM, Siddharth Sharma <svs at svs.io> wrote:
>
>> Does this help?
>> https://ruby.awsblog.com/post/Tx2SU6TYJWQQLC3/Stubbing-AWS-Responses
>>
>
> Thanks... but I don't think it does.. as the stubbing capabilities aren't
> in the new library - the 1.x SDK provides this but not the 2.x.
>
> I guess I could use the 1.x instead, but that gives a different set of
> challenges, and I get the impression that 2.x is the way forward, and I'd
> expect 1.x to be deprecated before long.
>
> S.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20140414/15f1a03f/attachment.html>


More information about the Chat mailing list