lib/processout/transaction.rb in processout-1.0.2 vs lib/processout/transaction.rb in processout-1.0.3

- old
+ new

@@ -165,58 +165,58 @@ # Fills the object with data coming from the API # Params: # +data+:: +Hash+ of data coming from the API def fill_with_data(data) if data.include? "id" - @id = data["id"] + self.id = data["id"] end if data.include? "project" - @project = data["project"] + self.project = data["project"] end if data.include? "customer" - @customer = data["customer"] + self.customer = data["customer"] end if data.include? "subscription" - @subscription = data["subscription"] + self.subscription = data["subscription"] end if data.include? "token" - @token = data["token"] + self.token = data["token"] end if data.include? "card" - @card = data["card"] + self.card = data["card"] end if data.include? "name" - @name = data["name"] + self.name = data["name"] end if data.include? "authorized_amount" - @authorized_amount = data["authorized_amount"] + self.authorized_amount = data["authorized_amount"] end if data.include? "captured_amount" - @captured_amount = data["captured_amount"] + self.captured_amount = data["captured_amount"] end if data.include? "currency" - @currency = data["currency"] + self.currency = data["currency"] end if data.include? "status" - @status = data["status"] + self.status = data["status"] end if data.include? "authorized" - @authorized = data["authorized"] + self.authorized = data["authorized"] end if data.include? "captured" - @captured = data["captured"] + self.captured = data["captured"] end if data.include? "processout_fee" - @processout_fee = data["processout_fee"] + self.processout_fee = data["processout_fee"] end if data.include? "metadata" - @metadata = data["metadata"] + self.metadata = data["metadata"] end if data.include? "sandbox" - @sandbox = data["sandbox"] + self.sandbox = data["sandbox"] end if data.include? "created_at" - @created_at = data["created_at"] + self.created_at = data["created_at"] end self end