Class: Ravelin::ThreeDSecure

Inherits:
RavelinObject show all
Defined in:
lib/ravelin/three_d_secure.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RavelinObject

attr_accessor, attr_required, #initialize, required_attributes, #validate

Constructor Details

This class inherits a constructor from Ravelin::RavelinObject

Instance Attribute Details

#attemptedObject

Returns the value of attribute attempted.



3
4
5
# File 'lib/ravelin/three_d_secure.rb', line 3

def attempted
  @attempted
end

#end_timeObject

Returns the value of attribute end_time.



3
4
5
# File 'lib/ravelin/three_d_secure.rb', line 3

def end_time
  @end_time
end

#start_timeObject

Returns the value of attribute start_time.



3
4
5
# File 'lib/ravelin/three_d_secure.rb', line 3

def start_time
  @start_time
end

#successObject

Returns the value of attribute success.



3
4
5
# File 'lib/ravelin/three_d_secure.rb', line 3

def success
  @success
end

#timed_outObject

Returns the value of attribute timed_out.



3
4
5
# File 'lib/ravelin/three_d_secure.rb', line 3

def timed_out
  @timed_out
end

Instance Method Details

#serializable_hashObject



9
10
11
12
13
14
15
16
17
18
# File 'lib/ravelin/three_d_secure.rb', line 9

def serializable_hash
  hash = {
    'attempted' => boolean(attempted),
    'success'   => boolean(success),
    'timedOut'  => boolean(timed_out)
  }
  hash['startTime'] = timestamp(start_time) if valid?(start_time)
  hash['endTime']   = timestamp(end_time)   if valid?(end_time)
  hash
end