Class: Braintree::AchMandate

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/braintree/ach_mandate.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from BaseModule

included

Methods included from BaseModule::Methods

#copy_instance_variables_from_object, #return_object_or_raise, #set_instance_variables_from_hash, #singleton_class

Constructor Details

#initialize(attributes) ⇒ AchMandate

Returns a new instance of AchMandate.



8
9
10
11
# File 'lib/braintree/ach_mandate.rb', line 8

def initialize(attributes)
  set_instance_variables_from_hash(attributes)
  @accepted_at = Time.parse(attributes[:accepted_at]) unless @accepted_at.class == Time
end

Instance Attribute Details

#accepted_atObject (readonly)

Returns the value of attribute accepted_at.



5
6
7
# File 'lib/braintree/ach_mandate.rb', line 5

def accepted_at
  @accepted_at
end

#textObject (readonly)

Returns the value of attribute text.



6
7
8
# File 'lib/braintree/ach_mandate.rb', line 6

def text
  @text
end