Class: Txter::Gateway::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/gateway.rb

Direct Known Subclasses

Txter::Gateway4info::Response

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Response

Returns a new instance of Response.



7
8
9
# File 'lib/gateway.rb', line 7

def initialize(*args)
  @options = args.last
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/gateway.rb', line 11

def success?
  :success == @options[:status]
end