Sha256: c5772be6c08da22f2ee67fd631a7c3ea00caf31442a37f04a88b988c461148fb
Contents?: true
Size: 552 Bytes
Versions: 44
Compression:
Stored size: 552 Bytes
Contents
module PortaText module Command # This class holds the result of calling the endpoint. # # Author:: Marcelo Gornstein (mailto:marcelog@portatext.com) # Copyright:: Copyright (c) 2015 PortaText # License:: Apache-2.0 class Result attr_accessor :code attr_accessor :headers attr_accessor :data attr_reader :success def initialize(code, headers, data) @code = code @headers = headers @data = data @success = code > 199 && code < 300 end end end end
Version data entries
44 entries across 44 versions & 1 rubygems