Class: Braintree::AchMandate
- Inherits:
-
Object
- Object
- Braintree::AchMandate
- Includes:
- BaseModule
- Defined in:
- lib/braintree/ach_mandate.rb
Instance Attribute Summary collapse
-
#accepted_at ⇒ Object
readonly
Returns the value of attribute accepted_at.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ AchMandate
constructor
A new instance of AchMandate.
Methods included from BaseModule
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_at ⇒ Object (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 |
#text ⇒ Object (readonly)
Returns the value of attribute text.
6 7 8 |
# File 'lib/braintree/ach_mandate.rb', line 6 def text @text end |