Sha256: 65d85cef723aa2794693830ea73f8e76528712d1e26dbca71f737d2926bd0f5c
Contents?: true
Size: 455 Bytes
Versions: 4
Compression:
Stored size: 455 Bytes
Contents
module BtfyClient class CreateLinkResponse include APIClientBase::Response.module attribute :body, Object, lazy: true, default: :default_body attribute :link, BtfyClient::Link, default: :default_link private def default_body raw_response.body end def default_link args = {} JSON.parse(body).each do |key, value| args[key] = value end Link.new(args["link"]) end end end
Version data entries
4 entries across 4 versions & 1 rubygems