Class: Braintree::Dispute::Evidence
- Inherits:
-
Object
- Object
- Braintree::Dispute::Evidence
- Includes:
- BaseModule
- Defined in:
- lib/braintree/dispute/evidence.rb
Instance Attribute Summary collapse
-
#category ⇒ Object
readonly
Returns the value of attribute category.
-
#comment ⇒ Object
readonly
Returns the value of attribute comment.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#sent_to_processor_at ⇒ Object
readonly
Returns the value of attribute sent_to_processor_at.
-
#sequence_number ⇒ Object
readonly
Returns the value of attribute sequence_number.
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Evidence
constructor
A new instance of Evidence.
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) ⇒ Evidence
Returns a new instance of Evidence.
15 16 17 18 19 20 21 |
# File 'lib/braintree/dispute/evidence.rb', line 15 def initialize(attributes) unless attributes.nil? @tag = attributes[:category] set_instance_variables_from_hash attributes end @sent_to_processor_at = Date.parse(sent_to_processor_at) unless sent_to_processor_at.nil? end |
Instance Attribute Details
#category ⇒ Object (readonly)
Returns the value of attribute category.
6 7 8 |
# File 'lib/braintree/dispute/evidence.rb', line 6 def category @category end |
#comment ⇒ Object (readonly)
Returns the value of attribute comment.
6 7 8 |
# File 'lib/braintree/dispute/evidence.rb', line 6 def comment @comment end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
6 7 8 |
# File 'lib/braintree/dispute/evidence.rb', line 6 def created_at @created_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/braintree/dispute/evidence.rb', line 6 def id @id end |
#sent_to_processor_at ⇒ Object (readonly)
Returns the value of attribute sent_to_processor_at.
6 7 8 |
# File 'lib/braintree/dispute/evidence.rb', line 6 def sent_to_processor_at @sent_to_processor_at end |
#sequence_number ⇒ Object (readonly)
Returns the value of attribute sequence_number.
6 7 8 |
# File 'lib/braintree/dispute/evidence.rb', line 6 def sequence_number @sequence_number end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
6 7 8 |
# File 'lib/braintree/dispute/evidence.rb', line 6 def tag @tag end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
6 7 8 |
# File 'lib/braintree/dispute/evidence.rb', line 6 def url @url end |