Sha256: 37677543dc9255193eb15c38814cd4826807cfcfd49097bd4b8c1aea9bf36092

Contents?: true

Size: 240 Bytes

Versions: 1

Compression:

Stored size: 240 Bytes

Contents

# rubocop:ignore Style/Documentation
class ActiveSMS::Response
  attr_reader :status

  def initialize(args = {})
    @status = args.delete(:status)
  end

  def success?
    @status == :success
  end

  def failed?
    !success?
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_sms-0.0.1 lib/active_sms/response.rb