Class: Braintree::Dispute::Evidence

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/braintree/dispute/evidence.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) ⇒ 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

#categoryObject (readonly)

Returns the value of attribute category.



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

def category
  @category
end

#commentObject (readonly)

Returns the value of attribute comment.



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

def comment
  @comment
end

#created_atObject (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

#idObject (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_atObject (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_numberObject (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

#tagObject (readonly)

Returns the value of attribute tag.



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

def tag
  @tag
end

#urlObject (readonly)

Returns the value of attribute url.



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

def url
  @url
end